Beispiel #1
0
 public function render()
 {
     // check object rules
     if ($this->rules && !Conditions::checkConditions($this->rules)) {
         return false;
     }
     $html = '';
     if ($this->htmlBefore) {
         $html .= $this->htmlBefore;
     }
     $html .= $this->renderContent();
     if (isset($this->htmlAfter)) {
         $html .= $this->htmlAfter;
     }
     return $html;
 }
Beispiel #2
0
 /**
  * @return array
  */
 private function getDisplayCols()
 {
     $cols = array();
     foreach ($this->columns as $col) {
         $col instanceof Column;
         // check column display rules
         if (!$col->conditions || $col->conditions && Conditions::checkConditions($col->conditions)) {
             $cols[] = $col;
         }
     }
     return $cols;
 }