2 class AkTestUser
extends AkActiveRecord
4 //var $expiresOnDataType = "date";
5 function callBackFunctionCompose()
7 $args = func_get_arg(0);
8 return "<a href='mailto:{$args['email']}'>{$args['name']}</a>";
10 function callBackFunctionDecompose($email_link)
12 $results = sscanf($email_link, "<a href='mailto:%[^']'>%[^<]</a>");
13 return array('email'=>$results[0],'name'=>$results[1]);
15 function getPassword()
17 parent
::get("password", false);
20 function setPassword($password)
22 parent
::set("password", md5($password), false);