Example #1
0
 private function instantiation($result)
 {
     $a_user = new self();
     foreach ($result as $key => $value) {
         if ($a_user->check_has_attribute($key)) {
             $a_user->{$key} = $value;
         }
     }
     return $a_user;
 }