コード例 #1
0
ファイル: node.php プロジェクト: kedweber/com_makundi
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_table_name = $this->getTable()->getName();
     $this->_relation_table_name = $this->getTable()->getRelationTable();
     if (empty($this->_relation_table_name)) {
         throw new KDatabaseRowException('Relation table cannot be empty');
     }
     $this->mixin(clone $this->getTable()->getBehavior('node'));
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (isset($config->left_column)) {
         $this->_left_column = $config->left_column;
     }
     if (isset($config->right_column)) {
         $this->_right_column = $config->right_column;
     }
     if (isset($config->level_column)) {
         $this->_level_column = $config->level_column;
     }
     if (isset($config->parent_column)) {
         $this->_parent_column = $config->parent_column;
     }
 }
コード例 #3
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->setThumbnailSize(KConfig::unbox($config->thumbnail_size));
 }
コード例 #4
0
ファイル: thumbnail.php プロジェクト: raeldc/com_learn
	public function __construct(KConfig $config)
	{
		parent::__construct($config);

        $this->_thumbnail_size = $config->thumbnail_size;
	}
コード例 #5
0
ファイル: document.php プロジェクト: kosmosby/medicine-prof
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->mixin($this->getTable()->getBehavior('aclable'));
 }