CNF = array( // database tables 'TABLE_POLLS' => $aModule['db_prefix'] . 'polls', 'TABLE_POLLS_ANSWERS' => $aModule['db_prefix'] . 'polls_answers', 'TABLE_POLLS_ANSWERS_VOTES' => $aModule['db_prefix'] . 'polls_answers_votes', 'TABLE_POLLS_ANSWERS_VOTES_TRACK' => $aModule['db_prefix'] . 'polls_answers_votes_track', // database fields 'FIELD_POLL_ID' => 'id', 'FIELD_POLL_AUTHOR_ID' => 'author_id', 'FIELD_POLL_CONTENT_ID' => 'content_id', 'FIELD_POLL_TEXT' => 'text', 'FIELD_POLL_ANSWERS' => 'answers', // some params 'PARAM_POLL_ENABLED' => true, 'PARAM_POLL_HIDDEN_RESULTS' => false, 'PARAM_POLL_ANONYMOUS_VOTING' => true, // objects 'OBJECT_VOTES_POLL_ANSWERS' => $this->_sName . '_poll_answers', ); $this->_aJsClasses = array( 'poll' => $this->_sClassPrefix . 'Polls' ); $this->_aJsObjects = array( 'poll' => 'o' . $this->_sClassPrefix . 'Polls' ); $sPrefix = str_replace('_', '-', $this->_sName); $this->_aHtmlIds = array( 'add_poll_popup' => $sPrefix . '-add-poll-popup', 'add_poll_form_field' => $sPrefix . '-add-poll-form-field', 'polls_showcase' => $sPrefix . '-polls-showcase-', 'poll' => $sPrefix . '-poll-', 'poll_content' => $sPrefix . '-poll-content-', 'poll_view_menu' => $sPrefix . '-poll-view-menu', 'poll_view_link_answers' => $sPrefix . '-poll-view-answers-', 'poll_view_link_results' => $sPrefix . '-poll-view-results-', ); $this->_bAttachmentsInTimeline = false; } public function isAttachmentsInTimeline() { return $this->_bAttachmentsInTimeline; } public function getHtmlIds($sKey = '') { if(empty($sKey)) return $this->_aHtmlIds; return isset($this->_aHtmlIds[$sKey]) ? $this->_aHtmlIds[$sKey] : ''; } } /** @} */