PHP 클래스 Prado\Web\Services\TPageConfiguration

TPageConfiguration represents the configuration for a page. The page is specified by a dot-connected path. Configurations along this path are merged together to be provided for the page.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $pagePath ) Constructor.
getApplicationConfigurations ( ) : array
getExternalConfigurations ( ) : array
getProperties ( ) : array Returns list of page initial property values.
getRules ( ) : TAuthorizationRuleCollection Returns list of authorization rules.
loadApplicationConfigurationFromPhp ( $config, $configPath )
loadApplicationConfigurationFromXml ( $dom, $configPath ) Loads the configuration specific for application part
loadFromFile ( $fname, $configPagePath ) Loads a specific config file.
loadFromFiles ( $basePath ) Loads configuration for a page specified in a path format.
loadFromPhp ( $config, $configPath, $configPagePath )
loadFromXml ( $dom, $configPath, $configPagePath ) Loads a page configuration.
loadPageConfigurationFromPhp ( $config, $configPath, $configPagePath )
loadPageConfigurationFromXml ( $dom, $configPath, $configPagePath ) Loads the configuration specific for page service.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $pagePath )

getApplicationConfigurations() 공개 메소드

public getApplicationConfigurations ( ) : array
리턴 array list of application configurations specified along page path

getExternalConfigurations() 공개 메소드

public getExternalConfigurations ( ) : array
리턴 array list of external configuration files. Each element is like $filePath=>$condition

getProperties() 공개 메소드

Each array element represents a single property with the key being the property name and the value the initial property value.
public getProperties ( ) : array
리턴 array list of page initial property values

getRules() 공개 메소드

The authorization rules are aggregated (bottom-up) from configuration files along the path to the specified page.
public getRules ( ) : TAuthorizationRuleCollection
리턴 Prado\Security\TAuthorizationRuleCollection collection of authorization rules

loadApplicationConfigurationFromPhp() 공개 메소드

public loadApplicationConfigurationFromPhp ( $config, $configPath )

loadApplicationConfigurationFromXml() 공개 메소드

Loads the configuration specific for application part
public loadApplicationConfigurationFromXml ( $dom, $configPath )

loadFromFile() 공개 메소드

Loads a specific config file.
public loadFromFile ( $fname, $configPagePath )

loadFromFiles() 공개 메소드

Loads configuration for a page specified in a path format.
public loadFromFiles ( $basePath )

loadFromPhp() 공개 메소드

public loadFromPhp ( $config, $configPath, $configPagePath )

loadFromXml() 공개 메소드

The configuration includes information for both application and page service.
public loadFromXml ( $dom, $configPath, $configPagePath )

loadPageConfigurationFromPhp() 공개 메소드

public loadPageConfigurationFromPhp ( $config, $configPath, $configPagePath )

loadPageConfigurationFromXml() 공개 메소드

Loads the configuration specific for page service.
public loadPageConfigurationFromXml ( $dom, $configPath, $configPagePath )