public function processValues($vals) { if (!parent::processValues($vals)) { return false; } $relationships = I2CE::getConfig()->getKeys("/modules/CustomReports/relationships"); if (array_key_exists('relationship', $vals) && is_scalar($vals['relationship']) && (in_array($vals['relationship'], $relationships) || $vals['relationship'] == '')) { $this->setField('relationship', $vals['relationship']); } return true; }
public function processValues($vals) { if (!parent::processValues($vals)) { return false; } $fields = array('il_iwr_host'); foreach ($fields as $field) { if (!array_key_exists($field, $vals) || !is_scalar($val = $vals[$field])) { continue; } $this->setField($field, $val); } return true; }
public function processValues($vals) { // Call I2CE_Swiss_PageArgs->processValues() to process the page's title, tasks and default html files if (!parent::processValues($vals)) { return false; } // Set the primary form for the page if (array_key_exists('primary_form', $vals)) { $this->setField('primary_form', $vals['primary_form']); } // Set the primary form for the page if (array_key_exists('title', $vals)) { $this->setField('title', $vals['title']); } return true; }