DBObj = SiteMap::getObj('Member/Invoice/Admin/Obj.php', isset($_REQUEST['id']) ? $_REQUEST['id'] : null); $this->Doc = &$Doc; if (!empty($this->_options['_restAlias'])) { $memberObj = SiteMap::getObj('Member/Member.php'); $data = $memberObj->getFromDB($this->_options['_restAlias']); if (null === $data) { $notFoundView = SiteMap::getObj('NotFound/NotFoundView.php'); $notFoundView->exec($this->Doc); return false; } $this->DBObj->setObjectData($data); $this->DBObj->setFilter(array('id_member' => $data['id'])); } parent::exec(); } function _doListBind(&$DB_List) { $DB_List->def_order_by = 'date_due DESC'; if (!$this->DBObj->getObjectData()) { $DB_List->insertColLast( 'member_name', array( 'title' => 'Member Name', 'order_by' => 'member_name', 'tpl' => DB_LIST_CELL_LINK, 'url' => CURR_PAGE . '/', 'params' => array('id_member', 'member_name'), ) ); } $this->_doListBindCommon($DB_List); return true; } protected function _initInfoBlock(&$item) { $item['member'] = $this->DBObj->getObjectData(); } function postSave() { if ('y' == $this->DBObj->getData('send_email')) { $this->DBObj->initFromDB(); $data = $this->DBObj->getData(); $data['member'] = $this->DBObj->getObjectData(); $this->_sendMail2Member($data); } } }