public function init($postObj) { if (false == parent::init($postObj)) { interface_log(ERROR, EC_OTHER, "init fail!"); return false; } try { $this->_oTable = new SingleTableOperation('picindex', 'MR'); } catch (Exception $e) { interface_log(ERROR, EC_DB_OP_EXCEPTION, $e->getMessage()); return $this->makeFF_HINT(FF_HINT_INNER_ERROR); } return true; }
public function init($postObj) { if (false === parent::init($postObj)) { interfaceLog(ERROR, EC_OTHER, "init fail"); return false; } if ($this->_msgType == "text") { $this->_content = (string) $postObj->Content; } else { if ($this->_msgType == 'event') { $this->_event = (string) $postObj->Event; $this->_eventKey = (string) $postObj->EventKey; } } return true; }
public function init($postObj) { if (false == parent::init($postObj)) { interface_log(ERROR, EC_OTHER, "init fail!"); return false; } //获取event和eventkey if ($this->_msgType == 'event') { $this->_event = (string) $postObj->Event; $this->_eventKey = (string) $postObj->EventKey; } //获取文本内容 if ($this->_msgType == 'text') { $this->_content = (string) $postObj->Content; } return true; }