diff options
author | dartcafe <github@dartcafe.de> | 2020-10-11 20:44:20 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-10-11 20:44:20 +0300 |
commit | 276903b5902471099244ae600ae0e51e115189de (patch) | |
tree | 87ba796ce06d717092cf762fd241c22c498779e1 /lib/Model/Email.php | |
parent | 6065df0585e052f837edfa117e45191eda2eb921 (diff) |
refactoring invitations1.6-circles-alpha4
Diffstat (limited to 'lib/Model/Email.php')
-rw-r--r-- | lib/Model/Email.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/Model/Email.php b/lib/Model/Email.php index f05a82f5..08184d0c 100644 --- a/lib/Model/Email.php +++ b/lib/Model/Email.php @@ -34,12 +34,25 @@ class Email extends UserGroupClass { * @param $displayName */ public function __construct( - $id, - $displayName = '' + $id ) { - parent::__construct($id, self::TYPE, $displayName); + parent::__construct($id, self::TYPE); $this->description = \OC::$server->getL10N('polls')->t('External Email'); $this->icon = self::ICON; $this->emailAddress = $id; } + + /** + * getDisplayName + * @NoAdminRequired + * @return String + */ + public function getDisplayName() { + if (!$this->displayName) { + return $this->id; + } + return $this->displayName; + } + + } |