PHP Class Nette\Database\Conventions\StaticConventions

Inheritance: implements Nette\Database\IConventions, use trait Nette\SmartObject
Afficher le fichier Open project: nette/database Class Usage Examples

Protected Properties

Свойство Type Description
$foreign string
$primary string
$table string

Méthodes publiques

Méthode Description
__construct ( $primary = 'id', $foreign = '%s_id', $table = '%s' ) Create static conventional structure.
getBelongsToReference ( $table, $key )
getHasManyReference ( $table, $key )
getPrimary ( $table )

Méthodes protégées

Méthode Description
getColumnFromTable ( $name )

Method Details

__construct() public méthode

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

getBelongsToReference() public méthode

public getBelongsToReference ( $table, $key )

getColumnFromTable() protected méthode

protected getColumnFromTable ( $name )

getHasManyReference() public méthode

public getHasManyReference ( $table, $key )

getPrimary() public méthode

public getPrimary ( $table )

Property Details

$foreign protected_oe property

protected string $foreign
Résultat string

$primary protected_oe property

protected string $primary
Résultat string

$table protected_oe property

protected string $table
Résultat string