|
Class TPageConfiguration
TPageConfiguration class
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.
-
TComponent
-
TPageConfiguration
Methods summary
public
|
#
__construct( string $pagePath )
Constructor.
Parameters
- $pagePath
string the currently request page in the format of Path.To.PageName
Overrides
|
public
array
|
#
getExternalConfigurations( )
Returns
array list of external configuration files. Each element is like
$filePath=>$condition
|
public
array
|
#
getProperties( )
Returns list of page initial property values. Each array element represents a
single property with the key being the property name and the value the initial
property value.
Returns list of page initial property values. Each array element represents a
single property with the key being the property name and the value the initial
property value.
Returns
array list of page initial property values
|
public
TAuthorizationRuleCollection
|
#
getRules( )
Returns list of authorization rules. The authorization rules are aggregated
(bottom-up) from configuration files along the path to the specified page.
Returns list of authorization rules. The authorization rules are aggregated
(bottom-up) from configuration files along the path to the specified page.
Returns
|
public
array
|
#
getApplicationConfigurations( )
Returns
array list of application configurations specified along page path
|
public
|
#
loadFromFiles( string $basePath )
Loads configuration for a page specified in a path format.
Loads configuration for a page specified in a path format.
Parameters
- $basePath
string root path for pages
|
public
|
#
loadFromFile( string $fname, string $configPagePath )
Loads a specific config file.
Loads a specific config file.
Parameters
- $fname
string config file name
- $configPagePath
string the page path that the config file is associated with. The page path doesn't
include the page name.
|
public
|
#
loadFromPhp( mixed $config, mixed $configPath, mixed $configPagePath )
|
public
|
#
loadFromXml( TXmlElement $dom, string $configPath, string $configPagePath )
Loads a page configuration. The configuration includes information for both
application and page service.
Loads a page configuration. The configuration includes information for both
application and page service.
Parameters
- $dom
TXmlElement
config xml element
- $configPath
string the directory containing this configuration
- $configPagePath
string the page path that the config XML is associated with. The page path doesn't
include the page name.
|
public
|
#
loadApplicationConfigurationFromPhp( mixed $config, mixed $configPath )
|
public
|
#
loadApplicationConfigurationFromXml( TXmlElement $dom, string $configPath )
Loads the configuration specific for application part
Loads the configuration specific for application part
Parameters
- $dom
TXmlElement
config xml element
- $configPath
string base path corresponding to this xml element
|
public
|
#
loadPageConfigurationFromPhp( mixed $config, mixed $configPath, mixed $configPagePath )
|
public
|
#
loadPageConfigurationFromXml( TXmlElement $dom, string $configPath, string $configPagePath )
Loads the configuration specific for page service.
Loads the configuration specific for page service.
Parameters
- $dom
TXmlElement
config xml element
- $configPath
string base path corresponding to this xml element
- $configPagePath
string the page path that the config XML is associated with. The page path doesn't
include the page name.
|
Methods inherited from TComponent
__call(),
__destruct(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
__wakeup(),
addParsedObject(),
asa(),
attachBehavior(),
attachBehaviors(),
attachClassBehavior(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
clearBehaviors(),
createdOnTemplate(),
detachBehavior(),
detachBehaviors(),
detachClassBehavior(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
evaluateStatements(),
fxAttachClassBehavior(),
fxDetachClassBehavior(),
getAutoGlobalListen(),
getBehaviorsEnabled(),
getClassHierarchy(),
getEventHandlers(),
getListeningToGlobalEvents(),
getSubProperty(),
hasEvent(),
hasEventHandler(),
hasProperty(),
isa(),
listen(),
raiseEvent(),
setSubProperty(),
unlisten()
|
|