當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。