示例#1
0
文件: user.php 项目: lryl/Lysine2
 protected function normalize($key, $value, array $attribute = null)
 {
     $value = parent::normalize($key, $value, $attribute);
     if ($key == 'passwd') {
         $value = $this->encodePasswd($value);
     } elseif ($key == 'email') {
         $value = strtolower($email);
     }
     return $value;
 }
示例#2
0
文件: user.php 项目: yeaha/lysine
 public function __get($prop)
 {
     if ($prop == 'role_name') {
         return $this->getRoleName();
     }
     return parent::__get($prop);
 }