예제 #1
0
 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;
     }
 }
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->setThumbnailSize(KConfig::unbox($config->thumbnail_size));
 }
예제 #4
0
	public function __construct(KConfig $config)
	{
		parent::__construct($config);

        $this->_thumbnail_size = $config->thumbnail_size;
	}
예제 #5
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->mixin($this->getTable()->getBehavior('aclable'));
 }