Example #1
0
 /**
  * @param $instance
  * @param int $totalCount
  * @return string
  */
 public function render($instance, $totalCount)
 {
     $date = $this->valueFromInstance($instance, $this->name);
     $formattedDate = '';
     if (!is_null($date)) {
         $formattedDate = DateFormatter::format($date, $this->formatDate, $this->formatTime, $this->customFormat);
     }
     return parent::render($instance, $totalCount, $formattedDate);
 }
 public function render($instance, $totalCount)
 {
     $content = $instance->{$this->name} ? 'Active' : 'Inactive';
     return parent::render($instance, $totalCount, $content);
 }
Example #3
0
 /**
  * @param $instance
  * @param int $totalCount
  * @return string
  */
 public function render($instance, $totalCount)
 {
     return parent::render($instance, $totalCount, $this->getCellContent($instance));
 }
 public function render($instance, $totalCount)
 {
     $content = $instance->{$this->name} ? 'High' : 'Low';
     return parent::render($instance, $totalCount, $content);
 }
Example #5
0
 public function render($instance, $totalCount)
 {
     $val = $instance->category->name;
     return parent::render($instance, $totalCount, $val);
 }