コード例 #1
0
ファイル: Pop3.php プロジェクト: jorgenils/zend-framework
 /**
  * 
  * Special handling for hasTop. The headers of the first message is
  * retrieved if Top wasn't needed/tried yet.
  * 
  * @see Zend_Mail_Abstract:__get()
  */
 public function __get($var)
 {
     if (strtolower($var) == 'hastop') {
         if ($this->_protocol->hasTop === null) {
             // need to make a real call, because not all server are honest in their capas
             try {
                 $this->_protocol->top(1, 0, false);
             } catch (Exception $e) {
                 // ignoring error
             }
         }
         return $this->_protocol->hasTop;
     }
     return parent::__get($var);
 }
コード例 #2
0
ファイル: Imap.php プロジェクト: jorgenils/zend-framework
 /**
  *
  * Special handling for hasTop. The headers of the first message is
  * retrieved if Top wasn't needed/tried yet.
  *
  * @see Zend_Mail_Abstract:__get()
  */
 public function __get($var)
 {
     return parent::__get($var);
 }