当前位置: 首页>>代码示例>>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;未经允许,请勿转载。