- function get_profile($id) {
- if (is_numeric($id)) {
- return Profile::staticGet($id);
- } else {
- $user = User::staticGet('nickname', $id);
- return $user->getProfile();
- }
- }
-
- function get_user($id) {
- if (is_numeric($id)) {
- return User::staticGet($id);
- } else {
- $user = User::staticGet('nickname', $id);
- return $user->getProfile();
- }