123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class UserNoProfileException extends NoProfileException
- {
- protected $user = null;
-
- public function __construct(User $user)
- {
- $this->user = $user;
-
-
- $message = sprintf(_('User %1$s (%2$d) has no profile record.'),
- $user->nickname, $user->id);
- parent::__construct($user->id, $message);
- }
-
- public function getUser()
- {
- return $this->user;
- }
- }
|