PHP Interface Nextras\Orm\Model\IRepositoryLoader

Datei anzeigen Open project: nextras/orm Interface Usage Examples

Public Methods

Method Description
getRepository ( string $className ) : Nextras\Orm\Repository\IRepository Returns instance of repository.
hasRepository ( string $className ) : boolean Returns true if repository exists.
isCreated ( string $className ) : boolean Checks, if repository has been already created.

Method Details

getRepository() public method

Returns instance of repository.
public getRepository ( string $className ) : Nextras\Orm\Repository\IRepository
$className string
return Nextras\Orm\Repository\IRepository

hasRepository() public method

Returns true if repository exists.
public hasRepository ( string $className ) : boolean
$className string
return boolean

isCreated() public method

Checks, if repository has been already created.
public isCreated ( string $className ) : boolean
$className string
return boolean