123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class GroupNoProfileException extends NoProfileException
- {
- protected $group = null;
-
- public function __construct(User_group $group)
- {
- $this->group = $group;
-
-
- $message = sprintf(_('Group "%1$s" (%2$d) has no profile record.'),
- $group->nickname, $group->getID());
- parent::__construct($group->profile_id, $message);
- }
-
- public function getGroup()
- {
- return $this->group;
- }
- }
|