コード例 #1
0
ファイル: wish.php プロジェクト: zooley/hubzero-cms
 /**
  * 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;
 }
コード例 #2
0
ファイル: wish.php プロジェクト: sumudinie/hubzero-cms
 /**
  * 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;
 }