original_string: public function auth($table_name, $inquiries){
  		$options = $this->get_options();
  		$data = $options['post_params'];
  
  		if(@$this->query_options['action'] == 'login'){
  			// ログインを試みる
  			$result = $this->exdb->user()->login( $table_name, $inquiries, $data );
  		}
  
  
  		$is_login = $this->exdb->user()->is_login($table_name);
  		if( $is_login ){
  			// ログイン処理済みなら終了
  			return true;
  		}
  
  		$table_definition = $this->exdb->get_table_definition($table_name);
  		// var_dump($table_definition->columns);
  
  		$rtn = '';
  		foreach( $inquiries as $column_name ){
  			$column_definition = $table_definition->columns->{$column_name};
  			$type_info = $this->exdb->form_elements()->get_type_info($column_definition->type);
  			$form_elm = $this->render(
  				$type_info['templates']['preview'],
  				array(
  					'value'=>@$list[0][$column_definition->name],
  					'name'=>@$column_definition->name,
  					'def'=>@$column_definition,
  				)
  			);
  			$rtn .= $this->render(
  				'form_elms_unit.html',
  				array(
  					'label'=>@$column_definition->label,
  					'content'=>$form_elm,
  					'error'=>null,
  				)
  			);
  		}
  
  		$rtn = $this->render(
  			'form_login.html',
  			array(
  				'is_error'=>(@$this->query_options['action'] == 'login'),
  				'content'=>$rtn,
  			)
  		);
  		// var_dump($table_list);
  		$rtn = $this->wrap_theme($rtn);
  		echo $rtn;
  		return false;
  
  	}
code: public function auth($table_name, $inquiries){
  		$options = $this->get_options();
  		$data = $options['post_params'];
  
  		if(@$this->query_options['action'] == 'login'){
  			// ログインを試みる
  			$result = $this->exdb->user()->login( $table_name, $inquiries, $data );
  		}
  
  
  		$is_login = $this->exdb->user()->is_login($table_name);
  		if( $is_login ){
  			// ログイン処理済みなら終了
  			return true;
  		}
  
  		$table_definition = $this->exdb->get_table_definition($table_name);
  		// var_dump($table_definition->columns);
  
  		$rtn = '';
  		foreach( $inquiries as $column_name ){
  			$column_definition = $table_definition->columns->{$column_name};
  			$type_info = $this->exdb->form_elements()->get_type_info($column_definition->type);
  			$form_elm = $this->render(
  				$type_info['templates']['preview'],
  				array(
  					'value'=>@$list[0][$column_definition->name],
  					'name'=>@$column_definition->name,
  					'def'=>@$column_definition,
  				)
  			);
  			$rtn .= $this->render(
  				'form_elms_unit.html',
  				array(
  					'label'=>@$column_definition->label,
  					'content'=>$form_elm,
  					'error'=>null,
  				)
  			);
  		}
  
  		$rtn = $this->render(
  			'form_login.html',
  			array(
  				'is_error'=>(@$this->query_options['action'] == 'login'),
  				'content'=>$rtn,
  			)
  		);
  		// var_dump($table_list);
  		$rtn = $this->wrap_theme($rtn);
  		echo $rtn;
  		return false;
  
  	}
code_tokens: public function auth ( $ table_name , $ inquiries ) { $ options = $ this -> get_options ( ) ; $ data = $ options [ 'post_params' ] ; if ( @ $ this -> query_options [ 'action' ] == 'login' ) { // ログインを試みる $ result = $ this -> exdb -> user ( ) -> login ( $ table_name , $ inquiries , $ data ) ; } $ is_login = $ this -> exdb -> user ( ) -> is_login ( $ table_name ) ; if ( $ is_login ) { // ログイン処理済みなら終了 return true ; } $ table_definition = $ this -> exdb -> get_table_definition ( $ table_name ) ; // var_dump($table_definition->columns); $ rtn = '' ; foreach ( $ inquiries as $ column_name ) { $ column_definition = $ table_definition -> columns -> { $ column_name } ; $ type_info = $ this -> exdb -> form_elements ( ) -> get_type_info ( $ column_definition -> type ) ; $ form_elm = $ this -> render ( $ type_info [ 'templates' ] [ 'preview' ] , array ( 'value' => @ $ list [ 0 ] [ $ column_definition -> name ] , 'name' => @ $ column_definition -> name , 'def' => @ $ column_definition , ) ) ; $ rtn .= $ this -> render ( 'form_elms_unit.html' , array ( 'label' => @ $ column_definition -> label , 'content' => $ form_elm , 'error' => null , ) ) ; } $ rtn = $ this -> render ( 'form_login.html' , array ( 'is_error' => ( @ $ this -> query_options [ 'action' ] == 'login' ) , 'content' => $ rtn , ) ) ; // var_dump($table_list); $ rtn = $ this -> wrap_theme ( $ rtn ) ; echo $ rtn ; return false ; }
docstring: Execute Automatic Auth form
  
  @param  string $table_name テーブル名
  @param  array $inquiries 照会するカラム名
  @return boolean Success to `true`, Failed, or NOT Login to `false`.
docstring_tokens: Execute Automatic Auth form