当前位置: 首页>>代码示例>>PHP>>正文


PHP ACLRole::get_summary_text方法代码示例

本文整理汇总了PHP中ACLRole::get_summary_text方法的典型用法代码示例。如果您正苦于以下问题:PHP ACLRole::get_summary_text方法的具体用法?PHP ACLRole::get_summary_text怎么用?PHP ACLRole::get_summary_text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ACLRole的用法示例。


在下文中一共展示了ACLRole::get_summary_text方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: testget_summary_text

 public function testget_summary_text()
 {
     $aclRole = new ACLRole();
     //test with name attribute set and verify it returns expected value.
     //it works only if name attribute is preset, throws exception otherwise
     $aclRole->name = 'test role';
     $name = $aclRole->get_summary_text();
     $this->assertEquals('test role', $name);
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:9,代码来源:ACLRoleTest.php

示例2: getClassicModuleTitle

        unset($categories2[$v]);
    }
}
if (!empty($names)) {
    $tdwidth = 100 / sizeof($names);
}
$sugar_smarty->assign('ROLE', $role->toArray());
//xye customization begin
$sugar_smarty->assign("CHECKED", $role->enablesoftphone ? "checked" : "");
//xye customization end
$sugar_smarty->assign('CATEGORIES', $categories);
$sugar_smarty->assign('CATEGORIES2', $categories2);
$sugar_smarty->assign('TDWIDTH', $tdwidth);
$sugar_smarty->assign('ACTION_NAMES', $names);
$return = array('module' => 'ACLRoles', 'action' => 'DetailView', 'record' => $role->id);
$sugar_smarty->assign('RETURN', $return);
$params = array();
$params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>";
$params[] = $role->get_summary_text();
echo getClassicModuleTitle("ACLRoles", $params, true);
//$sugar_smarty->assign('TITLE', $title);
$hide_hide_supanels = true;
//xye customization begin
echo $sugar_smarty->fetch('custom/modules/ACLRoles/DetailView.tpl');
//xye customization end
//for subpanels the variable must be named focus;
$focus =& $role;
$_REQUEST['module'] = 'ACLRoles';
require_once 'include/SubPanel/SubPanelTiles.php';
$subpanel = new SubPanelTiles($role, 'ACLRoles');
echo $subpanel->display();
开发者ID:anhtuantt,项目名称:sugarcrm-twilio-example,代码行数:31,代码来源:DetailView.php

示例3: getClassicModuleTitle

$tdwidth = 10;
if (isset($_REQUEST['return_module'])) {
    $return['module'] = $_REQUEST['return_module'];
    if (isset($_REQUEST['return_id'])) {
        $return['record'] = $_REQUEST['return_id'];
    }
    if (isset($_REQUEST['return_record'])) {
        $return['record'] = $_REQUEST['return_record'];
    }
    if (isset($_REQUEST['return_action'])) {
        $return['action'] = $_REQUEST['return_action'];
    }
    if (!empty($return['record'])) {
        $return['action'] = 'DetailView';
    }
}
$sugar_smarty->assign('RETURN', $return);
$names = ACLAction::setupCategoriesMatrix($categories);
$sugar_smarty->assign('CATEGORIES', $categories);
$sugar_smarty->assign('TDWIDTH', $tdwidth);
$sugar_smarty->assign('ACTION_NAMES', $names);
$params = array();
$params[] = "<a href='index.php?module=ACLRoles&action=index'>{$mod_strings['LBL_MODULE_NAME']}</a>";
if (empty($role->id)) {
    $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL'];
} else {
    $params[] = "<a href='index.php?module=ACLRoles&action=DetailView&record={$role->id}'>" . $role->get_summary_text() . "</a>";
    $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
}
echo getClassicModuleTitle("ACLRoles", $params, true);
echo $sugar_smarty->fetch('modules/ACLRoles/EditView.tpl');
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:31,代码来源:EditView.php


注:本文中的ACLRole::get_summary_text方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。