Horde_ActiveSync_Message_Base::__get PHP Method

__get() public method

Accessor
public __get ( string $property ) : mixed
$property string Property to get.
return mixed The value of the requested property.
    public function &__get($property)
    {
        if ($this->_properties[$property] !== false) {
            return $this->_properties[$property];
        } else {
            $string = '';
            return $string;
        }
    }

Usage Example

示例#1
0
 public function &__get($property)
 {
     // The saveinsent is an empty tag, and is considered true if it is
     // present.
     // Deal with the empty tags that are considered true if they are present
     switch ($property) {
         case 'saveinsent':
         case 'replacemime':
             $return = $this->_properties[$property] !== false;
             return $return;
     }
     return parent::__get($property);
 }