示例#1
0
 /**
  * create renderer instance
  * @param array $pParams
  */
 public function __construct($pParams = array())
 {
     parent::__construct();
     if (count($pParams) > 0) {
         $this->urlParts = $pParams;
     }
 }
示例#2
0
 /**
  * create security context instance
  * @param CSubject $pSubject
  */
 public function __construct(CSubject $pSubject = null)
 {
     parent::__construct();
     $this->sharedState = new stdClass();
     if (isset($pSubject)) {
         $this->subject = $pSubject;
     } else {
         $this->subject = CSubject::create();
     }
     $this->moduleInstances = new SplObjectStorage();
 }
示例#3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
示例#4
0
文件: CHttp.php 项目: Broncko/Savant
 /**
  * Constructor
  * @param string $pUrl url
  */
 public function __construct($pSection = 'default')
 {
     parent::__construct($pSection);
 }
示例#5
0
 /**
  * create request resolver instance
  */
 public function __construct()
 {
     parent::__construct();
     $this->requestHandler = new \SplObjectStorage();
 }
示例#6
0
 /**
  * create datasetprovider instance
  * @param \Savant\Storage\CDatabase $db
  */
 public function __construct(\Savant\Storage\CDatabase $pDb)
 {
     parent::__construct();
     $this->db = $pDb;
     self::$TABLE = \array_pop(\explode('\\', \get_class($this)));
 }
示例#7
0
 /**
  * creates xmlrpc client instance and initiates http handler. the config
  * section parameter has to be defined in both config files:
  * - conf/Savant/Webservice/CXMLRPCClient.conf.xml
  * - conf/Savant/Protocol/CHttp.conf.xml
  * @param string $pSection
  */
 public function __construct($pSection = 'default')
 {
     \Savant\CBootstrap::extensionLoaded('xmlrpc');
     parent::__construct($pSection);
     $this->httpHandler = new \Savant\Protocol\CHttp($pSection);
 }
示例#8
0
 /**
  * create template engine instance
  * @param string $pSection
  */
 public function __construct($pSection = 'default')
 {
     parent::__construct($pSection);
     $this->TEMPLATE_DIR = \Savant\CBootstrap::$SKINS_DIR;
     $this->COMPILE_DIR = \Savant\CBootstrap::$CACHE_DIR;
 }
示例#9
0
 /**
  * create unit test result parser instance from testfile
  */
 public function __construct($pSection = 'default')
 {
     parent::__construct($pSection);
     $this->simplexml = \simplexml_load_file($this->TESTFILE);
 }