PHP 클래스 Pop\Project\Project

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config Pop\Config Project config
$events Pop\Event\Manager Project events
$logger Pop\Log\Logger Project logger
$modules array Project module configs
$router Pop\Mvc\Router Project router
$services Pop\Service\Locator Project services
$start integer Project start timestamp

공개 메소드들

메소드 설명
__construct ( mixed $config = null, array $module = null, Router $router = null ) : Project Constructor
attachEvent ( string $name, mixed $action, integer $priority ) : Project Attach an event. Default project event name hook-points are:
config ( ) : Config Access the project config
database ( string $dbname ) : Db Access a project database
detachEvent ( string $name, mixed $action ) : Project Detach an event. Default project event name hook-points are:
factory ( mixed $config = null, array $module = null, Router $router = null ) : Project Static method to instantiate the project object and return itself to facilitate chaining methods together.
getEventManager ( ) : Manager Get the event Manager
getService ( string $name ) : mixed Get a service
getServiceLocator ( ) : Locator Get the service Locator
isLoaded ( string $name ) : boolean Determine whether a module is loaded
loadConfig ( mixed $config ) : Project Load a project config
loadModule ( array $module ) : Project Load a module config
loadRouter ( Router $router ) : Project Load a router
log ( string $message, integer $time = null, integer $priority = Pop\Log\Logger::INFO ) : void Log the project.
logger ( ) : Logger Access the project logger
module ( string $name ) : Config Access a project module config
modules ( ) : array Access all project module configs
router ( ) : Router Access the project router
run ( ) : void Run the project.
setService ( string $name, mixed $call, mixed $params = null ) : Project Set a service

메소드 상세

__construct() 공개 메소드

Instantiate a project object
public __construct ( mixed $config = null, array $module = null, Router $router = null ) : Project
$config mixed
$module array
$router Pop\Mvc\Router
리턴 Project

attachEvent() 공개 메소드

route.pre route route.error route.post dispatch.pre dispatch dispatch.send dispatch.post dispatch.error
public attachEvent ( string $name, mixed $action, integer $priority ) : Project
$name string
$action mixed
$priority integer
리턴 Project

config() 공개 메소드

Access the project config
public config ( ) : Config
리턴 Pop\Config

database() 공개 메소드

Access a project database
public database ( string $dbname ) : Db
$dbname string
리턴 Pop\Db\Db

detachEvent() 공개 메소드

route.pre route route.error route.post dispatch.pre dispatch dispatch.send dispatch.post dispatch.error
public detachEvent ( string $name, mixed $action ) : Project
$name string
$action mixed
리턴 Project

factory() 공개 정적인 메소드

Static method to instantiate the project object and return itself to facilitate chaining methods together.
public static factory ( mixed $config = null, array $module = null, Router $router = null ) : Project
$config mixed
$module array
$router Pop\Mvc\Router
리턴 Project

getEventManager() 공개 메소드

Get the event Manager
public getEventManager ( ) : Manager
리턴 Pop\Event\Manager

getService() 공개 메소드

Get a service
public getService ( string $name ) : mixed
$name string
리턴 mixed

getServiceLocator() 공개 메소드

Get the service Locator
public getServiceLocator ( ) : Locator
리턴 Pop\Service\Locator

isLoaded() 공개 메소드

Determine whether a module is loaded
public isLoaded ( string $name ) : boolean
$name string
리턴 boolean

loadConfig() 공개 메소드

Load a project config
public loadConfig ( mixed $config ) : Project
$config mixed
리턴 Project

loadModule() 공개 메소드

Load a module config
public loadModule ( array $module ) : Project
$module array
리턴 Project

loadRouter() 공개 메소드

Load a router
public loadRouter ( Router $router ) : Project
$router Pop\Mvc\Router
리턴 Project

log() 공개 메소드

Log the project.
public log ( string $message, integer $time = null, integer $priority = Pop\Log\Logger::INFO ) : void
$message string
$time integer
$priority integer
리턴 void

logger() 공개 메소드

Access the project logger
public logger ( ) : Logger
리턴 Pop\Log\Logger

module() 공개 메소드

Access a project module config
public module ( string $name ) : Config
$name string
리턴 Pop\Config

modules() 공개 메소드

Access all project module configs
public modules ( ) : array
리턴 array

router() 공개 메소드

Access the project router
public router ( ) : Router
리턴 Pop\Mvc\Router

run() 공개 메소드

Run the project.
public run ( ) : void
리턴 void

setService() 공개 메소드

Set a service
public setService ( string $name, mixed $call, mixed $params = null ) : Project
$name string
$call mixed
$params mixed
리턴 Project

프로퍼티 상세

$config 보호되어 있는 프로퍼티

Project config
protected Config,Pop $config
리턴 Pop\Config

$events 보호되어 있는 프로퍼티

Project events
protected Manager,Pop\Event $events
리턴 Pop\Event\Manager

$logger 보호되어 있는 프로퍼티

Project logger
protected Logger,Pop\Log $logger
리턴 Pop\Log\Logger

$modules 보호되어 있는 프로퍼티

Project module configs
protected array $modules
리턴 array

$router 보호되어 있는 프로퍼티

Project router
protected Router,Pop\Mvc $router
리턴 Pop\Mvc\Router

$services 보호되어 있는 프로퍼티

Project services
protected Locator,Pop\Service $services
리턴 Pop\Service\Locator

$start 보호되어 있는 프로퍼티

Project start timestamp
protected int $start
리턴 integer