PHP Класс Lazer\Classes\Helpers\Config

Автор: Grzegorz Kuźnik
Наследование: extends File
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
fields ( ) : array Return array with names of fields
getKey ( string $field, boolean $assoc = false ) : mixed Get key from returned config
lastId ( ) : integer Returning last ID from table
relations ( mixed $tableName = null, boolean $assoc = false ) : array | object Return relations configure
schema ( ) : array Returning assoc array with types of fields
table ( $name )

Описание методов

fields() публичный метод

Return array with names of fields
public fields ( ) : array
Результат array

getKey() публичный метод

Get key from returned config
public getKey ( string $field, boolean $assoc = false ) : mixed
$field string key
$assoc boolean
Результат mixed

lastId() публичный метод

Returning last ID from table
public lastId ( ) : integer
Результат integer

relations() публичный метод

Return relations configure
public relations ( mixed $tableName = null, boolean $assoc = false ) : array | object
$tableName mixed null-all tables;array-few tables;string-one table relation informations
$assoc boolean Object or associative array
Результат array | object

schema() публичный метод

Returning assoc array with types of fields
public schema ( ) : array
Результат array

table() публичный статический метод

public static table ( $name )