PHP Class FluentStructure, fluentpdo

Afficher le fichier Open project: fpdo/fluentpdo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' ) FluentStructure constructor.
getForeignKey ( string $table ) : string
getPrimaryKey ( string $table ) : string

Private Methods

Méthode Description
key ( string | callback $key, string $table ) : string

Method Details

__construct() public méthode

FluentStructure constructor.
public __construct ( string $primaryKey = 'id', string $foreignKey = '%s_id' )
$primaryKey string
$foreignKey string

getForeignKey() public méthode

public getForeignKey ( string $table ) : string
$table string
Résultat string

getPrimaryKey() public méthode

public getPrimaryKey ( string $table ) : string
$table string
Résultat string