Пример #1
0
 /**
  * Given a Member ID, return Member
  *
  * @param integer $member_id
  * @return Entry
  */
 public function fetchMemberFromID($member_id)
 {
     if (!Identity::$driver instanceof Extension) {
         Identity::$driver = Symphony::ExtensionManager()->create('members');
     }
     return Identity::$driver->getMemberDriver()->initialiseMemberObject($member_id);
 }
Пример #2
0
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_required = true;
     $this->set('required', 'yes');
     if (!self::$driver instanceof Extension) {
         self::$driver = Symphony::ExtensionManager()->create('members');
     }
 }