PHP Class Lazer\Classes\Helpers\Config

Author: Grzegorz Kuźnik
Inheritance: extends File
Afficher le fichier Open project: greg0/lazer-database Class Usage Examples

Méthodes publiques

Méthode Description
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 )

Method Details

fields() public méthode

Return array with names of fields
public fields ( ) : array
Résultat array

getKey() public méthode

Get key from returned config
public getKey ( string $field, boolean $assoc = false ) : mixed
$field string key
$assoc boolean
Résultat mixed

lastId() public méthode

Returning last ID from table
public lastId ( ) : integer
Résultat integer

relations() public méthode

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
Résultat array | object

schema() public méthode

Returning assoc array with types of fields
public schema ( ) : array
Résultat array

table() public static méthode

public static table ( $name )