Fixing content type ordering when content_type is not defined.
[akelos.git] / test / fixtures / app / models / ak_test_user.php
blob9fea9980a253a13b9291eaf97d3e34649f829f40
1 <?php
2 class AkTestUser extends AkActiveRecord
3 {
4 //var $expiresOnDataType = "date";
5 function callBackFunctionCompose()
7 $args = func_get_arg(0);
8 return "<a href='mailto:{$args['email']}'>{$args['name']}</a>";
9 }
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);
18 return "*********";
20 function setPassword($password)
22 parent::set("password", md5($password), false);