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


PHP CFunctions::loadList方法代码示例

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


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

示例1: CFunctions

<?php

/**
 * $Id$
 *  
 * @category ihe
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$function = new CFunctions();
$functions = $function->loadList();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("functions", $functions);
$smarty->display("configure.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:19,代码来源:configure.php

示例2: loadFonctions

 /**
  * Load functions with permissions for given group, current group by default
  *
  * @param int    $permType Level of permission
  * @param int    $group_id Filter on group
  * @param string $type     Type of function
  *
  * @return CFunctions[] Found functions
  */
 static function loadFonctions($permType = PERM_READ, $group_id = null, $type = null, $name = "")
 {
     $group = CGroups::loadCurrent();
     $function = new CFunctions();
     $where = array();
     $where["actif"] = "= '1'";
     $where["group_id"] = "= '" . CValue::first($group_id, $group->_id) . "'";
     if ($type) {
         $where["type"] = "= '{$type}'";
     }
     if ($name) {
         $where["text"] = "LIKE '{$name}%'";
     }
     $order = "text";
     /** @var CFunctions[] $functions */
     $functions = $function->loadList($where, $order);
     CMbObject::filterByPerm($functions, $permType);
     // Group association
     foreach ($functions as $function) {
         $function->_ref_group = $group;
     }
     return $functions;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:32,代码来源:CMediusers.class.php

示例3: CRegleSectorisation

 * @version    $Revision$
 */
CCanDo::checkAdmin();
$rule_id = CValue::get("rule_id");
$clone = CValue::get("clone", 0);
$rule_sectorisation = new CRegleSectorisation();
$rule_sectorisation->load($rule_id);
if ($clone) {
    $rule_sectorisation->_id = null;
}
//mediusers
$user = CMediusers::get();
$users = $user->loadPraticiens(PERM_EDIT);
//functions
$function = new CFunctions();
$functions = $function->loadList(null, "text");
//services
$service = new CService();
$services = $service->loadGroupList();
//services
$group = new CGroups();
$groups = $group->loadList();
//smarty
$smarty = new CSmartyDP();
$smarty->assign("rule", $rule_sectorisation);
$smarty->assign("clone", $clone);
$smarty->assign("user", $user);
$smarty->assign("users", $users);
$smarty->assign("functions", $functions);
$smarty->assign("services", $services);
$smarty->assign("groups", $groups);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_edit_rule_sectorisation.php

示例4: CSmartyDP

if ($inactif == "0") {
    $where["actif"] = "= '1'";
}
$where["group_id"] = "= '{$group->_id}'";
$order = null;
if ($order_col == "text") {
    $order = "text {$order_way}";
}
if ($order_col == "type") {
    $order = "type {$order_way}, text ASC";
}
if ($filter) {
    $functions = $function->seek($filter, $where, "{$page}, {$step}", true, null, $order);
    $total_functions = $function->_totalSeek;
} else {
    $functions = $function->loadList($where, $order, "{$page}, {$step}");
    $total_functions = $function->countList($where);
}
foreach ($functions as $_function) {
    $_function->countBackRefs("users");
    $_function->countBackRefs("secondary_functions");
}
$function_id = CValue::getOrSession("function_id");
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("inactif", $inactif);
$smarty->assign("functions", $functions);
$smarty->assign("total_functions", $total_functions);
$smarty->assign("page", $page);
$smarty->assign("function_id", $function_id);
$smarty->assign("type", $type);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_search_function.php


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