示例#1
0
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     $pks = (array) $this->pks;
     $this->record->load(array_shift($pks));
     $this->primary = (bool) $this->record->primary;
     $this->topic = $this->model->getRecord('Topic');
     $this->topic->load($this->record->topic_id);
 }
示例#2
0
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     if (isset($this->pks)) {
         $this->id = $this->pks;
     }
     $this->parent = $this->model->getRecord('Category');
     $this->record->load($this->id);
     $this->parent->load($this->record->parent_id);
 }
示例#3
0
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     $this->record->load($this->pks);
 }