/** * Store changes to this offering * * @param boolean $check Perform data validation check? * @return boolean False if error, True on success */ public function store($check = true) { if (!$this->get('anonymous')) { $this->set('anonymous', 0); } $string = str_replace(array('&', '<', '>'), array('&', '<', '>'), $this->get('about')); $this->set('about', \Hubzero\Utility\Sanitize::clean($string)); if (!parent::store($check)) { return false; } return true; }
/** * Store changes to this offering * * @param boolean $check Perform data validation check? * @return boolean False if error, True on success */ public function store($check = true) { if (!$this->get('anonymous')) { $this->set('anonymous', 0); } $this->set('about', \Hubzero\Utility\Sanitize::clean($this->get('about'))); if (!parent::store($check)) { return false; } return true; }