PHP 클래스 Lazer\Classes\Helpers\Config

저자: Grzegorz Kuźnik
상속: extends File
파일 보기 프로젝트 열기: greg0/lazer-database 1 사용 예제들

공개 메소드들

메소드 설명
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 )