src/Phiber/ORM/Persistence/TableMySql.php
static function columns($table)
    {
        $sql = "show columns from " . strtolower($table);

        $contentFile = JsonReader::read(BASE_DIR . "/phiber_config.json")->phiber->execute_querys == 1 ? true : false;
        if ($contentFile) {
            $pdo = self::getConnection()->prepare($sql);
            if ($pdo->execute()) {
                return $pdo->fetchAll(\PDO::FETCH_ASSOC);
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
static function columns($table)
    {
        $sql = "show columns from " . strtolower($table);

        $contentFile = JsonReader::read(BASE_DIR . "/phiber_config.json")->phiber->execute_querys == 1 ? true : false;
        if ($contentFile) {
            $pdo = self::getConnection()->prepare($sql);
            if ($pdo->execute()) {
                return $pdo->fetchAll(\PDO::FETCH_ASSOC);
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
static function columns ( $ table ) { $ sql = "show columns from " . strtolower ( $ table ) ; $ contentFile = JsonReader :: read ( BASE_DIR . "/phiber_config.json" ) -> phiber -> execute_querys == 1 ? true : false ; if ( $ contentFile ) { $ pdo = self :: getConnection ( ) -> prepare ( $ sql ) ; if ( $ pdo -> execute ( ) ) { return $ pdo -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; } else { return false ; } } else { return false ; } }
Mostra as colunas daquela tabela.

@param string $table
@return array|bool
Mostra as colunas daquela tabela .