__get() public method

public __get ( $name )
Exemplo n.º 1
0
 /**
  */
 public function __get($name)
 {
     $out = parent::__get($name);
     switch ($name) {
         case 'url':
             $out->protocol = 'pop3';
             break;
     }
     return $out;
 }
Exemplo n.º 2
0
 /**
  */
 public function __get($name)
 {
     switch ($name) {
         case 'search_charset':
             if (!isset($this->_init['search_charset']) && $this->_capability()->isEnabled('UTF8=ACCEPT')) {
                 $this->_init['search_charset'] = new Horde_Imap_Client_Data_SearchCharset_Utf8();
             }
             break;
     }
     return parent::__get($name);
 }