PHP Class BaseModel

Inheritance: extends Eloquent
显示文件 Open project: forkcms/forkcms Class Usage Examples

Public Methods

Method Description
get ( string $reference ) : object Gets a service by id.
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
has ( string $reference ) : boolean Returns true if the service id is defined.
setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )

Method Details

get() public static method

Gets a service by id.
public static get ( string $reference ) : object
$reference string The service id
return object The service

getContainer() public static method

public static getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

has() public static method

Returns true if the service id is defined.
public static has ( string $reference ) : boolean
$reference string The service id
return boolean true if the service id is defined, false otherwise

setContainer() public static method

public static setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface