Example #1
0
 public function renderData()
 {
     /** @var FieldView[] $fieldViews */
     $fieldViews = $this->getChart()->children()->filterByType(FieldView::class);
     if (count($this->values) === 0) {
         $header = [];
         foreach ($fieldViews as $fieldView) {
             $header[] = $fieldView->getLabel();
         }
         $this->values = $header;
     }
     $row = [];
     foreach ($fieldViews as $fieldView) {
         $row[] = \mp\getValue($this->data, $fieldView->getDataFieldName());
     }
     $this->values[] = $row;
     return '';
 }
 public function checkNoPropertyCondition(ComponentInterface $component, $property)
 {
     return \mp\getValue($component, $property) == false && (!$component instanceof TagInterface || $component->getAttribute($property) == false);
 }