コード例 #1
0
 /**
  * Gets the HTML of this table. Makes sure the action field is empty.
  * @return string
  */
 protected final function getTableHtml()
 {
     if ($this->hasActions()) {
         $fieldAction = $this->form->getField(self::FIELD_ACTION);
         $fieldAction->setValue(null);
     }
     return parent::getHtml();
 }
コード例 #2
0
 /**
  * Decorates the provided cron job
  * @param zibo\cron\model\CronJob $job Cron job to decorate
  * @return string
  */
 protected function decorateCronJob(CronJob $job)
 {
     $button = $this->form->getField(CronJobTable::BUTTON_INVOKE);
     return $button->getOptionHtml($job->getId());
 }