public function processValues($vals) { $this->setEnabled(array_key_exists('enabled', $vals) && $vals['enabled']); $this->setShowBlanks(array_key_exists('show_blanks', $vals) && $vals['show_blanks']); return parent::processValues($vals); }
public function processValues($values) { if (!$this->page->hasPermission('task(custom_reports_can_edit_reportViews)')) { return false; } parent::processValues($values); if (array_key_exists('total_hide', $values)) { if (array_key_exists('total', $values) && $values['total']) { $this->setTotal(true); } else { $this->setTotal(false); } } if (array_key_exists('disable_hide', $values)) { if (array_key_exists('disable', $values) && $values['disable']) { $this->setDisabled(true); } else { $this->setDisabled(false); } } if (array_key_exists('related_views', $values)) { $this->setRelatedViews($values['related_views']); } if (array_key_exists('description', $values)) { $this->setDescription($values['description']); } if (array_key_exists('displayName', $values)) { $this->setDisplayName($values['displayName']); } if (array_key_exists('limit_view_to_task', $values)) { $this->setLimitedViewByTask($values['limit_view_to_task']); } return true; }