Example #1
0
 public function __construct( KConfig $config = null)
 {
     $config->append(array('parent_column' => null));
     $this->_parent_column = $config->parent_column;
     
     parent::__construct($config);
 }
 protected function _beforeTableUpdate(KCommandContext $context)
 {
     if ($this->featured_order) {
         $this->getService('com://admin/articles.database.row.featured')->set('id', $this->id)->load()->order($this->order);
     } else {
         parent::_beforeTableUpdate($context);
     }
 }