Exemplo n.º 1
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->CNF = array('TABLE_ENTRIES' => $aModule['db_prefix'] . 'posts', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_TITLE' => 'title', 'FIELD_TEXT' => 'text', 'FIELD_TEXT_ID' => 'post-text', 'FIELD_ALLOW_VIEW_TO' => 'allow_view_to', 'FIELD_PHOTO' => 'pictures', 'FIELD_THUMB' => 'thumb', 'FIELD_COMMENTS' => 'comments', 'FIELD_LOCATION_PREFIX' => 'location', 'FIELDS_WITH_KEYWORDS' => 'auto', 'URI_VIEW_ENTRY' => 'view-post', 'URI_AUTHOR_ENTRIES' => 'posts-author', 'URI_ADD_ENTRY' => 'create-post', 'URI_EDIT_ENTRY' => 'edit-post', 'URI_MANAGE_COMMON' => 'posts-manage', 'URL_HOME' => 'page.php?i=posts-home', 'URL_POPULAR' => 'page.php?i=posts-popular', 'URL_MANAGE_COMMON' => 'page.php?i=posts-manage', 'URL_MANAGE_MODERATION' => 'page.php?i=posts-moderation', 'URL_MANAGE_ADMINISTRATION' => 'page.php?i=posts-administration', 'PARAM_CHARS_SUMMARY' => 'bx_posts_summary_chars', 'PARAM_CHARS_SUMMARY_PLAIN' => 'bx_posts_plain_summary_chars', 'PARAM_NUM_RSS' => 'bx_posts_rss_num', 'OBJECT_STORAGE' => 'bx_posts_files', 'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_posts_preview', 'OBJECT_IMAGES_TRANSCODER_GALLERY' => 'bx_posts_gallery', 'OBJECT_VIDEOS_TRANSCODERS' => array(), 'OBJECT_VIEWS' => 'bx_posts', 'OBJECT_VOTES' => 'bx_posts', 'OBJECT_METATAGS' => 'bx_posts', 'OBJECT_COMMENTS' => 'bx_posts', 'OBJECT_PRIVACY_VIEW' => 'bx_posts_allow_view_to', 'OBJECT_FORM_ENTRY' => 'bx_posts', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_posts_entry_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_posts_entry_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_posts_entry_edit', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_posts_entry_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_posts_view', 'OBJECT_MENU_ACTIONS_MY_ENTRIES' => 'bx_posts_my', 'OBJECT_MENU_SUBMENU' => 'bx_posts_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => 'bx_posts_view_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'posts-home', 'OBJECT_MENU_MANAGE_TOOLS' => 'bx_posts_menu_manage_tools', 'OBJECT_GRID_ADMINISTRATION' => 'bx_posts_administration', 'OBJECT_GRID_MODERATION' => 'bx_posts_moderation', 'OBJECT_GRID_COMMON' => 'bx_posts_common', 'OBJECT_UPLOADERS' => array('sys_simple', 'sys_html5'), 'MENU_ITEM_TO_METHOD' => array('bx_posts_my' => array('create-post' => 'checkAllowedAdd'), 'bx_posts_view' => array('edit-post' => 'checkAllowedEdit', 'delete-post' => 'checkAllowedDelete')), 'T' => array('txt_sample_single' => '_bx_posts_txt_sample_single', 'txt_sample_comment_single' => '_bx_posts_txt_sample_comment_single', 'grid_action_err_delete' => '_bx_posts_grid_action_err_delete', 'filter_item_active' => '_bx_posts_grid_filter_item_title_adm_active', 'filter_item_hidden' => '_bx_posts_grid_filter_item_title_adm_hidden', 'filter_item_select_one_filter1' => '_bx_posts_grid_filter_item_title_adm_select_one_filter1', 'menu_item_manage_my' => '_bx_posts_menu_item_title_manage_my', 'menu_item_manage_all' => '_bx_posts_menu_item_title_manage_all'));
     $this->_aJsClass = array('manage_tools' => 'BxPostsManageTools');
     $this->_aJsObjects = array('manage_tools' => 'oBxPostsManageTools');
     $this->_aGridObjects = array('common' => $this->CNF['OBJECT_GRID_COMMON'], 'moderation' => $this->CNF['OBJECT_GRID_MODERATION'], 'administration' => $this->CNF['OBJECT_GRID_ADMINISTRATION']);
 }
Exemplo n.º 2
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $aMenuItems2Methods = array('edit-album' => 'checkAllowedEdit', 'delete-album' => 'checkAllowedDelete');
     $this->CNF = array('ICON' => 'picture-o col-blue1', 'TABLE_ENTRIES' => $aModule['db_prefix'] . 'albums', 'TABLE_FILES2ENTRIES' => $aModule['db_prefix'] . 'files2albums', 'TABLE_FILES' => $aModule['db_prefix'] . 'files', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_TITLE' => 'title', 'FIELD_TEXT' => 'text', 'FIELD_TEXT_ID' => 'album-desc', 'FIELD_ALLOW_VIEW_TO' => 'allow_view_to', 'FIELD_PHOTO' => 'pictures', 'FIELD_THUMB' => 'thumb', 'FIELD_COMMENTS' => 'comments', 'FIELD_LOCATION_PREFIX' => 'location', 'FIELDS_WITH_KEYWORDS' => 'auto', 'URI_VIEW_ENTRY' => 'view-album', 'URI_VIEW_MEDIA' => 'view-album-media', 'URI_AUTHOR_ENTRIES' => 'albums-author', 'URI_ADD_ENTRY' => 'create-album', 'URI_EDIT_ENTRY' => 'edit-album', 'URI_MANAGE_COMMON' => 'albums-manage', 'URL_HOME' => 'page.php?i=albums-home', 'URL_POPULAR' => 'page.php?i=albums-popular', 'URL_UPDATED' => 'page.php?i=albums-updated', 'URL_POPULAR_MEDIA' => 'page.php?i=albums-popular-media', 'URL_RECENT_MEDIA' => 'page.php?i=albums-recent-media', 'URL_MANAGE_COMMON' => 'page.php?i=albums-manage', 'URL_MANAGE_ADMINISTRATION' => 'page.php?i=albums-administration', 'PARAM_CHARS_SUMMARY' => 'bx_albums_summary_chars', 'PARAM_CHARS_SUMMARY_PLAIN' => 'bx_albums_plain_summary_chars', 'PARAM_NUM_RSS' => 'bx_albums_rss_num', 'OBJECT_STORAGE' => 'bx_albums_files', 'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_albums_proxy_preview', 'OBJECT_IMAGES_TRANSCODER_GALLERY' => '', 'OBJECT_IMAGES_TRANSCODER_BIG' => 'bx_albums_big', 'OBJECT_VIDEOS_TRANSCODERS' => array('poster' => 'bx_albums_video_poster_big', 'poster_preview' => 'bx_albums_video_poster_preview', 'mp4' => 'bx_albums_video_mp4', 'webm' => 'bx_albums_video_webm'), 'OBJECT_VIDEO_TRANSCODER_HEIGHT' => '480px', 'OBJECT_TRANSCODER_BROWSE' => 'bx_albums_proxy_browse', 'OBJECT_VIEWS' => 'bx_albums', 'OBJECT_VIEWS_MEDIA' => 'bx_albums_media', 'OBJECT_VOTES' => 'bx_albums', 'OBJECT_VOTES_MEDIA' => 'bx_albums_media', 'OBJECT_METATAGS' => 'bx_albums', 'OBJECT_METATAGS_MEDIA' => 'bx_albums_media', 'OBJECT_METATAGS_MEDIA_CAMERA' => 'bx_albums_media_camera', 'OBJECT_COMMENTS' => 'bx_albums', 'OBJECT_COMMENTS_MEDIA' => 'bx_albums_media', 'OBJECT_PRIVACY_VIEW' => 'bx_albums_allow_view_to', 'OBJECT_FORM_ENTRY' => 'bx_albums', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_albums_entry_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_albums_entry_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_albums_entry_edit', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_albums_entry_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_albums_view', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY_POPUP' => 'bx_albums_view_popup', 'OBJECT_MENU_ACTIONS_MY_ENTRIES' => 'bx_albums_my', 'OBJECT_MENU_SUBMENU' => 'bx_albums_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => 'bx_albums_view_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'albums-home', 'OBJECT_MENU_MANAGE_TOOLS' => 'bx_albums_menu_manage_tools', 'OBJECT_GRID_ADMINISTRATION' => 'bx_albums_administration', 'OBJECT_GRID_COMMON' => 'bx_albums_common', 'OBJECT_UPLOADERS' => array('bx_albums_simple', 'bx_albums_html5'), 'MENU_ITEM_TO_METHOD' => array('bx_albums_my' => array('create-album' => 'checkAllowedAdd'), 'bx_albums_view' => $aMenuItems2Methods, 'bx_albums_view_popup' => $aMenuItems2Methods), 'T' => array('txt_sample_single' => '_bx_albums_txt_sample_single', 'txt_sample_comment_single' => '_bx_albums_txt_sample_comment_single', 'txt_sample_vote_single' => '_bx_albums_txt_sample_vote_single', 'txt_media_single' => '_bx_albums_txt_media_single', 'txt_media_comment_single' => '_bx_albums_txt_media_comment_single', 'grid_action_err_delete' => '_bx_albums_grid_action_err_delete', 'grid_txt_account_manager' => '_bx_albums_grid_txt_account_manager', 'filter_item_active' => '_bx_albums_grid_filter_item_title_adm_active', 'filter_item_hidden' => '_bx_albums_grid_filter_item_title_adm_hidden', 'filter_item_select_one_filter1' => '_bx_albums_grid_filter_item_title_adm_select_one_filter1', 'menu_item_manage_my' => '_bx_albums_menu_item_title_manage_my', 'menu_item_manage_all' => '_bx_albums_menu_item_title_manage_all', 'txt_all_entries_by' => '_bx_albums_txt_all_entries_by'));
     $this->_aJsClass = array('manage_tools' => 'BxAlbumsManageTools');
     $this->_aJsObjects = array('manage_tools' => 'oBxAlbumsManageTools');
     $this->_aGridObjects = array('common' => $this->CNF['OBJECT_GRID_COMMON'], 'administration' => $this->CNF['OBJECT_GRID_ADMINISTRATION']);
 }
Exemplo n.º 3
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->CNF = array('TABLE_ENTRIES' => $aModule['db_prefix'] . 'conversations', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_TITLE' => '', 'FIELD_TEXT' => 'text', 'FIELD_TEXT_ID' => 'convo-text', 'FIELD_ALLOW_VIEW_TO' => '', 'FIELD_PHOTO' => 'attachments', 'FIELD_THUMB' => '', 'FIELD_COMMENTS' => 'comments', 'URI_VIEW_ENTRY' => 'view-convo', 'URI_AUTHOR_ENTRIES' => 'convos', 'URI_ADD_ENTRY' => 'start-convo', 'URL_HOME' => 'modules/?r=convos/folder/1', 'PARAM_CHARS_SUMMARY' => '', 'PARAM_CHARS_SUMMARY_PLAIN' => '', 'PARAM_NUM_RSS' => '', 'OBJECT_GRID' => 'bx_convos', 'OBJECT_STORAGE' => 'bx_convos_files', 'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_convos_preview', 'OBJECT_VIEWS' => 'bx_convos', 'OBJECT_VOTES' => '', 'OBJECT_COMMENTS' => 'bx_convos', 'OBJECT_PRIVACY_VIEW' => '', 'OBJECT_FORM_ENTRY' => 'bx_convos', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_convos_entry_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_convos_entry_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => '', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_convos_entry_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_convos_view', 'OBJECT_MENU_ACTIONS_MY_ENTRIES' => 'bx_convos_my', 'OBJECT_MENU_SUBMENU' => 'bx_convos_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => '', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'convos', 'MENU_ITEM_TO_METHOD' => array('bx_convos_view' => array('delete-convos' => 'checkAllowedDelete', 'mark-unread-convo' => 'checkAllowedView')), 'T' => array('txt_sample_single' => '_bx_cnv_txt_sample_single'));
 }
Exemplo n.º 4
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->CNF = array('TABLE_ENTRIES' => $aModule['db_prefix'] . 'posts', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_TITLE' => 'title', 'FIELD_TEXT' => 'text', 'FIELD_TEXT_ID' => 'note-text', 'FIELD_ALLOW_VIEW_TO' => 'allow_view_to', 'FIELD_PHOTO' => 'pictures', 'FIELD_THUMB' => 'thumb', 'FIELD_COMMENTS' => 'comments', 'URI_VIEW_ENTRY' => 'view-note', 'URI_AUTHOR_ENTRIES' => 'notes-author', 'URI_ADD_ENTRY' => 'create-note', 'URL_HOME' => 'page.php?i=notes-home', 'PARAM_CHARS_SUMMARY' => 'bx_notes_summary_chars', 'PARAM_CHARS_SUMMARY_PLAIN' => 'bx_notes_plain_summary_chars', 'PARAM_NUM_RSS' => 'bx_notes_rss_num', 'OBJECT_STORAGE' => 'bx_notes_files', 'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_notes_preview', 'OBJECT_VIEWS' => 'bx_notes', 'OBJECT_VOTES' => 'bx_notes', 'OBJECT_COMMENTS' => 'bx_notes', 'OBJECT_PRIVACY_VIEW' => 'bx_notes_allow_view_to', 'OBJECT_FORM_ENTRY' => 'bx_notes', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_notes_entry_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_notes_entry_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_notes_entry_edit', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_notes_entry_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_notes_view', 'OBJECT_MENU_ACTIONS_MY_ENTRIES' => 'bx_notes_my', 'OBJECT_MENU_SUBMENU' => 'bx_notes_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => 'bx_notes_view_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'notes-home', 'MENU_ITEM_TO_METHOD' => array('bx_notes_my' => array('create-note' => 'checkAllowedAdd'), 'bx_notes_view' => array('edit-note' => 'checkAllowedEdit', 'delete-note' => 'checkAllowedDelete')), 'T' => array('txt_sample_single' => '_bx_notes_txt_sample_single'));
 }