isGroup() public method

Returns true if this object is a group of multiple contacts.
public isGroup ( ) : boolean
return boolean True if this object is a group of multiple contacts.
コード例 #1
0
ファイル: EditContact.php プロジェクト: jubinpatel/horde
 /**
  */
 public function renderActive($renderer, $vars, $action, $method)
 {
     parent::renderActive($renderer, $vars, $action, $method);
     if ($this->_contact->isGroup()) {
         $edit_url = Horde::url('browse.php')->add(array('key' => $this->_contact->getValue('__key'), 'source' => $this->_contact->getSource()));
         echo '<div class="editGroupMembers">' . Horde::link($edit_url) . '<span class="iconImg groupImg"></span>' . _("Edit/View Contact List Members") . '</a>' . '</div>';
     }
 }
コード例 #2
0
ファイル: EditContact.php プロジェクト: DSNS-LAB/Dmail
 public function getTitle()
 {
     return $this->contact ? sprintf($this->contact->isGroup() ? _("Edit Contact List \"%s\"") : _("Edit \"%s\""), $this->contact->getValue('name')) : _("Not Found");
 }