當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Base_AclCommon類代碼示例

本文整理匯總了PHP中Base_AclCommon的典型用法代碼示例。如果您正苦於以下問題:PHP Base_AclCommon類的具體用法?PHP Base_AclCommon怎麽用?PHP Base_AclCommon使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Base_AclCommon類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: applet_caption

 public static function applet_caption()
 {
     if (!Base_AclCommon::check_permission('Calendar')) {
         return false;
     }
     return __('Agenda');
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:7,代碼來源:CalendarCommon_0.php

示例2: menu

 public static function menu()
 {
     if (!Acl::is_user() || !Base_AclCommon::check_permission('Fax - Browse')) {
         return array();
     }
     return array(_M('CRM') => array('__submenu__' => 1, _M('Fax') => array()));
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:7,代碼來源:FaxCommon_0.php

示例3: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Fax - Browse');
     Base_AclCommon::delete_permission('Fax - Send');
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return true;
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:7,代碼來源:FaxInstall.php

示例4: menu

 public static function menu()
 {
     if (Base_AclCommon::check_permission('Advanced User Settings')) {
         return array(_M('My settings') => array('__weight__' => 10, '__submenu__' => 1, _M('Control panel') => array()));
     }
     return array();
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:7,代碼來源:SettingsCommon_0.php

示例5: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Calendar');
     DB::DropTable('crm_calendar_custom_events_handlers');
     Base_ThemeCommon::uninstall_default_theme('CRM/Calendar');
     return true;
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:7,代碼來源:CalendarInstall.php

示例6: uninstall

	public function uninstall() {
		Base_AclCommon::delete_permission('Messenger Alerts');
		$ret = true;
		$ret &= DB::DropTable('utils_messenger_users');
		$ret &= DB::DropTable('utils_messenger_message');
		return $ret;
	}
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:7,代碼來源:MessengerInstall.php

示例7: menu

 public static function menu()
 {
     if (Base_AclCommon::check_permission('Search')) {
         return array(_M('Search') => array());
     }
     return array();
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:7,代碼來源:SearchCommon_0.php

示例8: uninstall

 public function uninstall()
 {
     $ret = true;
     $ret &= DB::DropTable('apps_shoutbox_messages');
     Base_AclCommon::delete_permission('Shoutbox');
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return $ret;
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:8,代碼來源:ShoutboxInstall.php

示例9: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Advanced User Settings');
     global $database;
     $ret = true;
     $ret &= DB::DropTable('base_user_settings');
     Base_ThemeCommon::uninstall_default_theme(Base_User_SettingsInstall::module_name());
     return $ret;
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:9,代碼來源:SettingsInstall.php

示例10: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Manage Perspective');
     $ret = true;
     $ret &= DB::DropTable('crm_filters_contacts');
     $ret &= DB::DropTable('crm_filters_group');
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return $ret;
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:9,代碼來源:FiltersInstall.php

示例11: menu

 public static function menu()
 {
     if (Base_AclCommon::check_permission('Dashboard')) {
         $tray_settings = Utils_TrayCommon::get_trays();
         if (count($tray_settings) > 0) {
             return array(_M('Tray') => array('__icon__' => 'pile_small.png'));
         }
     }
     return array();
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:10,代碼來源:TrayCommon_0.php

示例12: admin_access

 public static function admin_access()
 {
     if (DEMO_MODE) {
         return false;
     }
     if (Variable::get('anonymous_setup')) {
         return true;
     }
     return Base_AclCommon::i_am_admin();
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:10,代碼來源:SetupCommon_0.php

示例13: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Attachments - view full download history');
     $ret = true;
     $ret &= DB::DropTable('utils_attachment_download');
     $ret &= DB::DropTable('utils_attachment_file');
     $ret &= DB::DropTable('utils_attachment_local');
     Utils_RecordBrowserCommon::uninstall_recordset('utils_attachment');
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     return $ret;
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:11,代碼來源:AttachmentInstall.php

示例14: uninstall

 public function uninstall()
 {
     Base_AclCommon::delete_permission('Dashboard');
     Base_ThemeCommon::uninstall_default_theme($this->get_type());
     $ret = true;
     $ret &= DB::DropTable('base_dashboard_settings');
     $ret &= DB::DropTable('base_dashboard_applets');
     $ret &= DB::DropTable('base_dashboard_default_settings');
     $ret &= DB::DropTable('base_dashboard_default_applets');
     $ret &= DB::DropTable('base_dashboard_users');
     return $ret;
 }
開發者ID:62BRAINS,項目名稱:EPESI,代碼行數:12,代碼來源:DashboardInstall.php

示例15: create_admin_modules_instances

 private function create_admin_modules_instances()
 {
     foreach (get_declared_classes() as $class) {
         $rclass = new ReflectionClass($class);
         if ($rclass->isSubclassOf("AdminModule") && !$rclass->isAbstract()) {
             $module = new $class();
             if (Base_AclCommon::i_am_sa() || Base_AclCommon::i_am_admin() && $module->access_admin() || Base_AclCommon::i_am_user() && $module->access_user()) {
                 $this->admin_modules[$class] = $module;
             }
         }
     }
     ksort($this->admin_modules);
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:13,代碼來源:AdminIndex.php


注:本文中的Base_AclCommon類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。