_joinEvent($alias); } protected function _joinEvent($alias = null) { return 'JOIN ' . $this->_getPair('Event', 'e') . ' ' . ' ON `e`.`id` = ' . $this->quoteField('id_event', $alias) . ' ' . $this->_leftJoinEventDoc(); } protected function _leftJoinEventDoc() { return 'LEFT ' . $this->_joinEventDoc(); } protected function _joinEventDoc() { return 'JOIN ' . $this->_getPair('EventDocumentofCommerce', 'edoc') . ' ' . ' ON `edoc`.`doc_number` = `e`.`doc_number`'; } protected function _leftJoinMember($alias = null) { return 'LEFT ' . $this->_joinMember($alias); } protected function _joinMember($alias = null) { return 'JOIN ' . $this->_getPair('Member', 'm') . ' ' . ' ON `m`.`id` = ' . $this->quoteField('id_member', $alias); } protected function _leftJoinEventCeCreditHistory() { return " LEFT JOIN {$this->_getPair('EventCECreditHistory', 'ech')} ON `ech`.`id_event` = `{$this->tableName}`.`id_event` AND `ech`.`id_individual` = `{$this->tableName}`.`id_member` "; } public function getColumnCertificateAllowed($requestAlias, $eventAlias, $memberAlias, $ceHistoryAlias) { return App_Event_Certificate_Obj::getColumnCertificateAllowed( $requestAlias, $eventAlias, $memberAlias, $ceHistoryAlias); } }