/** */ public function __get($name) { switch ($name) { case 'command': return $this->_server instanceof Horde_Imap_Client_Interaction_Server_Tagged ? $this->_pipeline->getCmd($this->_server->tag)->getCommand() : null; case 'resp_data': return $this->_pipeline->data; case 'status': return $this->_server->status; default: return parent::__get($name); } }
/** * Shortcut to creating a new pipeline object. * * @param Horde_Imap_Client_Interaction_Command $cmd An IMAP command to * add. * * @return Horde_Imap_Client_Interaction_Pipeline A pipeline object. */ protected function _pipeline($cmd = null) { if (!isset($this->_temp['fetchob'])) { $this->_temp['fetchob'] = new Horde_Imap_Client_Fetch_Results($this->_fetchDataClass, Horde_Imap_Client_Fetch_Results::SEQUENCE); } $ob = new Horde_Imap_Client_Interaction_Pipeline(clone $this->_temp['fetchob']); if (!is_null($cmd)) { $ob->add($cmd); } return $ob; }