Свойство | Тип | Описание | |
---|---|---|---|
$config | Project config | ||
$events | Project events | ||
$logger | Project logger | ||
$modules | array | Project module configs | |
$router | Project router | ||
$services | Project services | ||
$start | integer | Project start timestamp |
Метод | Описание | |
---|---|---|
__construct ( mixed $config = null, array $module = null, |
Constructor | |
attachEvent ( string $name, mixed $action, integer $priority ) : |
Attach an event. Default project event name hook-points are: | |
config ( ) : |
Access the project config | |
database ( string $dbname ) : |
Access a project database | |
detachEvent ( string $name, mixed $action ) : |
Detach an event. Default project event name hook-points are: | |
factory ( mixed $config = null, array $module = null, |
Static method to instantiate the project object and return itself to facilitate chaining methods together. | |
getEventManager ( ) : |
Get the event Manager | |
getService ( string $name ) : mixed | Get a service | |
getServiceLocator ( ) : |
Get the service Locator | |
isLoaded ( string $name ) : boolean | Determine whether a module is loaded | |
loadConfig ( mixed $config ) : |
Load a project config | |
loadModule ( array $module ) : |
Load a module config | |
loadRouter ( |
Load a router | |
log ( string $message, integer $time = null, integer $priority = Pop\Log\Logger::INFO ) : void | Log the project. | |
logger ( ) : |
Access the project logger | |
module ( string $name ) : |
Access a project module config | |
modules ( ) : array | Access all project module configs | |
router ( ) : |
Access the project router | |
run ( ) : void | Run the project. | |
setService ( string $name, mixed $call, mixed $params = null ) : |
Set a service |
public __construct ( mixed $config = null, array $module = null, |
||
$config | mixed | |
$module | array | |
$router | ||
Результат |
public detachEvent ( string $name, mixed $action ) : |
||
$name | string | |
$action | mixed | |
Результат |
public getEventManager ( ) : |
||
Результат |
public getService ( string $name ) : mixed | ||
$name | string | |
Результат | mixed |
public getServiceLocator ( ) : |
||
Результат |
public loadConfig ( mixed $config ) : |
||
$config | mixed | |
Результат |
public loadModule ( array $module ) : |
||
$module | array | |
Результат |
public loadRouter ( |
||
$router | ||
Результат |
public logger ( ) : |
||
Результат |
public router ( ) : |
||
Результат |
protected Manager,Pop\Event $events | ||
Результат |
protected Logger,Pop\Log $logger | ||
Результат |
protected Router,Pop\Mvc $router | ||
Результат |
protected Locator,Pop\Service $services | ||
Результат |