Exemple #1
0
 /**
  * 新增一条记录
  * @param array $params
  * @param boolean $ignore
  * @return array
  */
 public function create(array $params = array(), $ignore = false)
 {
     if (isset($params['show_code'])) {
         $params['show_code'] = String::stripslashes($params['show_code']);
     }
     return parent::create($params, $ignore);
 }
Exemple #2
0
 /**
  * 新增一条记录
  * @param array $params
  * @param boolean $ignore
  * @return array
  */
 public function create(array $params = array(), $ignore = false)
 {
     if (isset($params['html_style'])) {
         $params['html_style'] = String::stripslashes($params['html_style']);
     }
     if (isset($params['html_script'])) {
         $params['html_script'] = String::stripslashes($params['html_script']);
     }
     if (isset($params['html_head'])) {
         $params['html_head'] = String::stripslashes($params['html_head']);
     }
     if (isset($params['html_body'])) {
         $params['html_body'] = String::stripslashes($params['html_body']);
     }
     return parent::create($params, $ignore);
 }
Exemple #3
0
 /**
  * 新增一条记录
  * @param array $params
  * @param boolean $ignore
  * @return array
  */
 public function create(array $params = array(), $ignore = false)
 {
     $params['creator_id'] = Identity::getUserId();
     if (isset($params['content'])) {
         $params['content'] = String::stripslashes($params['content']);
     }
     return parent::create($params, $ignore);
 }