Example #1
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $aMenuItems2Methods = array('view-persons-profile' => 'checkAllowedView', 'edit-persons-profile' => 'checkAllowedEdit', 'delete-persons-profile' => 'checkAllowedDelete', 'profile-friend-add' => 'checkAllowedFriendAdd', 'profile-friend-remove' => 'checkAllowedFriendRemove', 'profile-subscribe-add' => 'checkAllowedSubscribeAdd', 'profile-subscribe-remove' => 'checkAllowedSubscribeRemove', 'profile-actions-more' => 'checkAllowedViewMoreMenu', 'profile-set-acl-level' => 'checkAllowedSetMembership');
     $this->CNF = array('TABLE_ENTRIES' => $aModule['db_prefix'] . 'data', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_NAME' => 'fullname', 'FIELD_PICTURE' => 'picture', 'FIELD_PICTURE_PREVIEW' => 'picture_preview', 'FIELD_COVER' => 'cover', 'FIELD_COVER_PREVIEW' => 'cover_preview', 'FIELDS_QUICK_SEARCH' => array('fullname'), 'FIELDS_WITH_KEYWORDS' => 'auto', 'URI_VIEW_ENTRY' => 'view-persons-profile', 'URI_EDIT_ENTRY' => 'edit-persons-profile', 'URI_EDIT_COVER' => 'edit-persons-cover', 'URI_MANAGE_COMMON' => 'persons-manage', 'URL_HOME' => 'page.php?i=persons-home', 'URL_MANAGE_COMMON' => 'page.php?i=persons-manage', 'URL_MANAGE_MODERATION' => 'page.php?i=persons-moderation', 'URL_MANAGE_ADMINISTRATION' => 'page.php?i=persons-administration', 'PARAM_AUTOAPPROVAL' => 'bx_persons_autoapproval', 'PARAM_DEFAULT_ACL_LEVEL' => 'bx_persons_default_acl_level', 'PARAM_NUM_RSS' => 'bx_persons_num_rss', 'PARAM_NUM_CONNECTIONS_QUICK' => 'bx_persons_num_connections_quick', 'OBJECT_STORAGE' => 'bx_persons_pictures', 'OBJECT_STORAGE_COVER' => 'bx_persons_pictures', 'OBJECT_IMAGES_TRANSCODER_THUMB' => 'bx_persons_thumb', 'OBJECT_IMAGES_TRANSCODER_ICON' => 'bx_persons_icon', 'OBJECT_IMAGES_TRANSCODER_AVATAR' => 'bx_persons_avatar', 'OBJECT_IMAGES_TRANSCODER_PICTURE' => 'bx_persons_picture', 'OBJECT_IMAGES_TRANSCODER_COVER' => 'bx_persons_cover', 'OBJECT_IMAGES_TRANSCODER_COVER_THUMB' => 'bx_persons_cover_thumb', 'OBJECT_VIEWS' => 'bx_persons', 'OBJECT_METATAGS' => 'bx_persons', 'OBJECT_FORM_ENTRY' => 'bx_person', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_person_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_person_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_person_edit', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT_COVER' => 'bx_person_edit_cover', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_person_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_persons_view_actions', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY_MORE' => 'bx_persons_view_actions_more', 'OBJECT_MENU_SUBMENU' => 'bx_persons_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => 'bx_persons_view_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'persons-home', 'OBJECT_MENU_MANAGE_TOOLS' => 'bx_persons_menu_manage_tools', 'OBJECT_PAGE_VIEW_ENTRY' => 'bx_persons_view_profile', 'OBJECT_GRID_ADMINISTRATION' => 'bx_persons_administration', 'OBJECT_GRID_MODERATION' => 'bx_persons_moderation', 'OBJECT_GRID_COMMON' => 'bx_persons_common', 'TRIGGER_PAGE_VIEW_ENTRY' => 'trigger_page_persons_view_entry', 'MENU_ITEM_TO_METHOD' => array('bx_persons_view_actions' => $aMenuItems2Methods, 'bx_persons_view_actions_more' => $aMenuItems2Methods), 'INFORMERS' => array('status' => array('name' => 'bx-persons-status-not-active', 'map' => array(BX_PROFILE_STATUS_PENDING => '_bx_persons_txt_account_pending', BX_PROFILE_STATUS_SUSPENDED => '_bx_persons_txt_account_suspended'))), 'T' => array('txt_sample_single' => '_bx_persons_txt_sample_single', 'menu_item_title_befriend_sent' => '_bx_persons_menu_item_title_befriend_sent', 'menu_item_title_unfriend_cancel_request' => '_bx_persons_menu_item_title_unfriend_cancel_request', 'menu_item_title_befriend_confirm' => '_bx_persons_menu_item_title_befriend_confirm', 'menu_item_title_unfriend_reject_request' => '_bx_persons_menu_item_title_unfriend_reject_request', 'menu_item_title_befriend' => '_bx_persons_menu_item_title_befriend', 'menu_item_title_unfriend' => '_bx_persons_menu_item_title_unfriend', 'grid_action_err_delete' => '_bx_persons_grid_action_err_delete', 'filter_item_active' => '_bx_persons_grid_filter_item_title_adm_active', 'filter_item_pending' => '_bx_persons_grid_filter_item_title_adm_pending', 'filter_item_suspended' => '_bx_persons_grid_filter_item_title_adm_suspended', 'filter_item_select_one_filter1' => '_bx_persons_grid_filter_item_title_adm_select_one_filter1', 'menu_item_manage_my' => '_bx_persons_menu_item_title_manage_my', 'menu_item_manage_all' => '_bx_persons_menu_item_title_manage_all'));
     $this->_aJsClass = array('manage_tools' => 'BxPersonsManageTools');
     $this->_aJsObjects = array('manage_tools' => 'oBxPersonsManageTools');
     $this->_aGridObjects = array('common' => $this->CNF['OBJECT_GRID_COMMON'], 'moderation' => $this->CNF['OBJECT_GRID_MODERATION'], 'administration' => $this->CNF['OBJECT_GRID_ADMINISTRATION']);
 }
Example #2
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $aMenuItems2Methods = array('view-organization-profile' => 'checkAllowedView', 'edit-organization-profile' => 'checkAllowedEdit', 'delete-organization-profile' => 'checkAllowedDelete', 'profile-friend-add' => 'checkAllowedFriendAdd', 'profile-friend-remove' => 'checkAllowedFriendRemove', 'profile-subscribe-add' => 'checkAllowedSubscribeAdd', 'profile-subscribe-remove' => 'checkAllowedSubscribeRemove', 'profile-actions-more' => 'checkAllowedViewMoreMenu', 'profile-set-acl-level' => 'checkAllowedSetMembership');
     $this->CNF = array('TABLE_ENTRIES' => $aModule['db_prefix'] . 'data', 'FIELD_ID' => 'id', 'FIELD_AUTHOR' => 'author', 'FIELD_ADDED' => 'added', 'FIELD_CHANGED' => 'changed', 'FIELD_NAME' => 'org_name', 'FIELD_PICTURE' => 'picture', 'FIELD_PICTURE_PREVIEW' => 'picture_preview', 'FIELD_COVER' => 'cover', 'FIELD_COVER_PREVIEW' => 'cover_preview', 'FIELDS_QUICK_SEARCH' => array('org_name'), 'URI_VIEW_ENTRY' => 'view-organization-profile', 'URI_EDIT_ENTRY' => 'edit-organization-profile', 'URI_EDIT_COVER' => 'edit-organization-cover', 'URL_HOME' => 'page.php?i=organizations-home', 'PARAM_AUTOAPPROVAL' => 'bx_organizations_autoapproval', 'PARAM_DEFAULT_ACL_LEVEL' => 'bx_organizations_default_acl_level', 'PARAM_NUM_RSS' => 'bx_organizations_num_rss', 'PARAM_NUM_CONNECTIONS_QUICK' => 'bx_organizations_num_connections_quick', 'OBJECT_STORAGE' => 'bx_organizations_pics', 'OBJECT_STORAGE_COVER' => 'bx_organizations_pics', 'OBJECT_IMAGES_TRANSCODER_THUMB' => 'bx_organizations_thumb', 'OBJECT_IMAGES_TRANSCODER_ICON' => 'bx_organizations_icon', 'OBJECT_IMAGES_TRANSCODER_AVATAR' => 'bx_organizations_avatar', 'OBJECT_IMAGES_TRANSCODER_PICTURE' => 'bx_organizations_picture', 'OBJECT_IMAGES_TRANSCODER_COVER' => 'bx_organizations_cover', 'OBJECT_IMAGES_TRANSCODER_COVER_THUMB' => 'bx_organizations_cover_thumb', 'OBJECT_VIEWS' => 'bx_organizations', 'OBJECT_FORM_ENTRY' => 'bx_organization', 'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_organization_view', 'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_organization_add', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_organization_edit', 'OBJECT_FORM_ENTRY_DISPLAY_EDIT_COVER' => 'bx_organization_edit_cover', 'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_organization_delete', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_organizations_view_actions', 'OBJECT_MENU_ACTIONS_VIEW_ENTRY_MORE' => 'bx_organizations_view_actions_more', 'OBJECT_MENU_SUBMENU' => 'bx_organizations_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY' => 'bx_organizations_view_submenu', 'OBJECT_MENU_SUBMENU_VIEW_ENTRY_MAIN_SELECTION' => 'organizations-home', 'MENU_ITEM_TO_METHOD' => array('bx_organizations_view_actions' => $aMenuItems2Methods, 'bx_organizations_view_actions_more' => $aMenuItems2Methods), 'INFORMERS' => array('status' => array('name' => 'bx-organizations-status-not-active', 'map' => array(BX_PROFILE_STATUS_PENDING => '_bx_orgs_txt_account_pending', BX_PROFILE_STATUS_SUSPENDED => '_bx_orgs_txt_account_suspended'))), 'T' => array('txt_sample_single' => '_bx_orgs_txt_sample_single', 'menu_item_title_befriend_sent' => '_bx_orgs_menu_item_title_befriend_sent', 'menu_item_title_unfriend_cancel_request' => '_bx_orgs_menu_item_title_unfriend_cancel_request', 'menu_item_title_befriend_confirm' => '_bx_orgs_menu_item_title_befriend_confirm', 'menu_item_title_unfriend_reject_request' => '_bx_orgs_menu_item_title_unfriend_reject_request', 'menu_item_title_befriend' => '_bx_orgs_menu_item_title_befriend', 'menu_item_title_unfriend' => '_bx_orgs_menu_item_title_unfriend'));
 }