getSource() public method

Returns the name of the address book that this object is from.
public getSource ( )
コード例 #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
ファイル: List.php プロジェクト: jubinpatel/horde
 /**
  * Inserts a new object into the list.
  *
  * @param Turba_Object $object  The object to insert.
  */
 public function insert(Turba_Object $object)
 {
     if ($object instanceof Turba_Object) {
         $key = $object->getSource() . ':' . $object->getValue('__key');
         if (!isset($this->objects[$key])) {
             $this->objects[$key] = $object;
         }
     }
 }