Пример #1
0
/**
     * Constructor
     *
     * @param   object  An optional KConfig object with configuration options
     */
    public function __construct(KConfig $config)
    {
        parent::__construct($config);

        // Set the static states
        $this->_state->limit = KFactory::get('joomla:application')->getCfg('list_limit');
    }
Пример #2
0
 public function __construct(KConfig $config)
 {
     $sluggable = KFactory::tmp('lib.koowa.database.behavior.sluggable', array('columns' => array('name')));
     $config->table_behaviors = array($sluggable, 'orderable', 'lockable', 'creatable', 'modifiable');
     parent::__construct($config);
     $this->_state->insert('jedi_rank_id', 'int')->insert('enabled', 'int');
 }
Пример #3
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $parent = $this->getTable()->select(array('name' => 'USERS', 'value' => 'USERS'), KDatabase::FETCH_ROW);
     $this->_state->insert('parent', 'int', $parent->id);
     $this->_state->insert('core', 'boolean');
 }
Пример #4
0
 public function __construct(KConfig $config)
 {
     $config->table_behaviors = array('sluggable', 'orderable', 'lockable', 'creatable', 'modifiable');
     parent::__construct($config);
     $this->_state->insert('enabled', 'int');
 }
Пример #5
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_state->insert('task', 'int')->insert('member', 'int');
 }