normalize() 공개 메소드

public normalize ( )
예제 #1
0
파일: Password.php 프로젝트: easyconn/atk4
 function normalize()
 {
     // user may have entered spaces accidentally in the password field.
     // Clean them up.
     $this->set(trim($this->get()));
     parent::normalize();
 }
예제 #2
0
파일: ValueList.php 프로젝트: TigerBui/atk4
 /**
  * Normalize POSTed data
  *
  * @return void
  */
 function normalize()
 {
     $data = $this->get();
     if (is_array($data)) {
         $data = join($this->separator, $data);
     }
     $data = trim($data, $this->separator);
     if (get_magic_quotes_gpc()) {
         $this->set(stripslashes($data));
     } else {
         $this->set($data);
     }
     return parent::normalize();
 }