コード例 #1
0
ファイル: session.php プロジェクト: walteraries/anahita
 /**
  * Forwards a non-property $key to the getSessionApi 
  * 
  * @return ComConnectDomainEntitySession
  */
 public function __get($key)
 {
     if (!$this->_repository->getDescription()->getProperty($key)) {
         return $this->getSessionApi($key);
     }
     return parent::__get($key);
 }
コード例 #2
0
ファイル: node.php プロジェクト: stonyyi/anahita
 /**
  * Initializes the default configuration for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('repository' => 'repos://site/base.node'));
     parent::_initialize($config);
 }