PHP 클래스 Nette\Database\Conventions\StaticConventions

상속: implements Nette\Database\IConventions, use trait Nette\SmartObject
파일 보기 프로젝트 열기: nette/database 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$foreign string
$primary string
$table string

공개 메소드들

메소드 설명
__construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) Create static conventional structure.
getBelongsToReference ( $table, $key )
getHasManyReference ( $table, $key )
getPrimary ( $table )

보호된 메소드들

메소드 설명
getColumnFromTable ( $name )

메소드 상세

__construct() 공개 메소드

Create static conventional structure.
public __construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' )

getBelongsToReference() 공개 메소드

public getBelongsToReference ( $table, $key )

getColumnFromTable() 보호된 메소드

protected getColumnFromTable ( $name )

getHasManyReference() 공개 메소드

public getHasManyReference ( $table, $key )

getPrimary() 공개 메소드

public getPrimary ( $table )

프로퍼티 상세

$foreign 보호되어 있는 프로퍼티

protected string $foreign
리턴 string

$primary 보호되어 있는 프로퍼티

protected string $primary
리턴 string

$table 보호되어 있는 프로퍼티

protected string $table
리턴 string