本文整理汇总了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');
}
示例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()));
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例7: menu
public static function menu()
{
if (Base_AclCommon::check_permission('Search')) {
return array(_M('Search') => array());
}
return array();
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}