PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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
Extended by TPageConfiguration
Package: System\Web\Services
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/Services/TPageService.php
Methods summary
public
# __construct( string $pagePath )

Constructor.

Constructor.

Parameters

$pagePath
string
the currently request page in the format of Path.To.PageName

Overrides

TComponent::__construct()
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

TAuthorizationRuleCollection
collection of authorization rules
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()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO