/** * Returns the data of a given property. Unrecognized properties are forwarded to it's parent. * @see solidbase/lib/Base#__get($property) */ function __get($property) { switch ($property) { case 'MEMBERS': $this->loadMembers(); case 'GroupType': return $this->{'_' . $property}; default: return parent::__get($property); } }
/** * Returns the value of the variable asked for. If the property is unknown, question is passed to parent class. * @access public * @param string $property The property asked for * @return mixed */ function __get($property) { if (in_array($property, array('username', 'userinfo', 'password'))) { return $this->{'_' . $property}; } return parent::__get($property); }