src/Dal/Modules/CommonDal.php
public function GetTableColumnsMeta($tableName, $columnNames) {
        $tableColumnsMetadata = array();
        foreach ($columnNames as $columnName) {
            $this->setDbConfigList(array());
            $dbConfig = new \Puzzlout\Framework\Dal\DbStatementConfig(null, \Puzzlout\Framework\Dal\DbExecutionType::COLUMNMETAS, new \Puzzlout\Framework\Dal\DbQueryFilters());
            $dbConfig->setQuery("SHOW COLUMNS FROM `$tableName` WHERE `Field` = '$columnName';");
            $this->addDbConfigItem($dbConfig);
            $tableColumnsMetadata[$columnName] = $this->BindParametersAndExecute();
        }
        return $tableColumnsMetadata;
    }
public function GetTableColumnsMeta($tableName, $columnNames) {
        $tableColumnsMetadata = array();
        foreach ($columnNames as $columnName) {
            $this->setDbConfigList(array());
            $dbConfig = new \Puzzlout\Framework\Dal\DbStatementConfig(null, \Puzzlout\Framework\Dal\DbExecutionType::COLUMNMETAS, new \Puzzlout\Framework\Dal\DbQueryFilters());
            $dbConfig->setQuery("SHOW COLUMNS FROM `$tableName` WHERE `Field` = '$columnName';");
            $this->addDbConfigItem($dbConfig);
            $tableColumnsMetadata[$columnName] = $this->BindParametersAndExecute();
        }
        return $tableColumnsMetadata;
    }
public function GetTableColumnsMeta ( $ tableName , $ columnNames ) { $ tableColumnsMetadata = array ( ) ; foreach ( $ columnNames as $ columnName ) { $ this -> setDbConfigList ( array ( ) ) ; $ dbConfig = new \ Puzzlout \ Framework \ Dal \ DbStatementConfig ( null , \ Puzzlout \ Framework \ Dal \ DbExecutionType :: COLUMNMETAS , new \ Puzzlout \ Framework \ Dal \ DbQueryFilters ( ) ) ; $ dbConfig -> setQuery ( "SHOW COLUMNS FROM `$tableName` WHERE `Field` = '$columnName';" ) ; $ this -> addDbConfigItem ( $ dbConfig ) ; $ tableColumnsMetadata [ $ columnName ] = $ this -> BindParametersAndExecute ( ) ; } return $ tableColumnsMetadata ; }
Gets the list of column metadata for a table.

@param type $tableName The table name.
@param type $columnNames The array of columns.
@return array The associative array of the metadata of the table columns.
Gets the list of column metadata for a table .