本文整理汇总了PHP中CService::getServicesIdsPref方法的典型用法代码示例。如果您正苦于以下问题:PHP CService::getServicesIdsPref方法的具体用法?PHP CService::getServicesIdsPref怎么用?PHP CService::getServicesIdsPref使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CService
的用法示例。
在下文中一共展示了CService::getServicesIdsPref方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CSmartyDP
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage Hospi
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$services_ids = CValue::getOrSession("services_ids");
$readonly = CValue::getOrSession("readonly");
$services_ids = CService::getServicesIdsPref($services_ids);
$smarty = new CSmartyDP();
$smarty->assign("readonly", $readonly);
$smarty->display("vw_placements.tpl");
示例2: CSejour
CCanDo::checkRead();
// Filtres d'affichage
$selSortis = CValue::getOrSession("selSortis", "0");
$order_col = CValue::getOrSession("order_col", "patient_id");
$order_way = CValue::getOrSession("order_way", "ASC");
$date = CValue::getOrSession("date", CMbDT::date());
$type = CValue::getOrSession("type");
$service_id = CValue::getOrSession("service_id");
$prat_id = CValue::getOrSession("prat_id");
$period = CValue::getOrSession("period");
$filterFunction = CValue::getOrSession("filterFunction");
$date_actuelle = CMbDT::dateTime("00:00:00");
$date_demain = CMbDT::dateTime("00:00:00", "+ 1 day");
$hier = CMbDT::date("- 1 day", $date);
$demain = CMbDT::date("+ 1 day", $date);
$service_id = CService::getServicesIdsPref($service_id);
// Récupération de la liste des praticiens
$prat = CMediusers::get();
$prats = $prat->loadPraticiens();
$sejour = new CSejour();
$sejour->_type_admission = $type;
$sejour->praticien_id = $prat_id;
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("sejour", $sejour);
$smarty->assign("date_demain", $date_demain);
$smarty->assign("date_actuelle", $date_actuelle);
$smarty->assign("date", $date);
$smarty->assign("selSortis", $selSortis);
$smarty->assign("order_way", $order_way);
$smarty->assign("order_col", $order_col);