本文整理汇总了PHP中CIdSante400::loadList方法的典型用法代码示例。如果您正苦于以下问题:PHP CIdSante400::loadList方法的具体用法?PHP CIdSante400::loadList怎么用?PHP CIdSante400::loadList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIdSante400
的用法示例。
在下文中一共展示了CIdSante400::loadList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/* $Id: httpreq_do_add_ccam.php 8262 2010-03-08 17:26:03Z rhum1 $ */
/**
* @package Mediboard
* @subpackage dPccam
* @version $Revision: 8262 $
* @author SARL OpenXtrem
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
*/
CCanDo::checkAdmin();
$object_id = CValue::get("object_id");
$object_class = CValue::get("object_class");
$tag = CValue::get("tag");
$idex_value = CValue::get("id400");
$where = array("object_id" => "= '{$object_id}'", "object_class" => "= '{$object_class}'", "tag" => "= '{$tag}'", "id400" => "= '{$idex_value}'");
$idex = new CIdSante400();
$idexs = $idex->loadList($where);
$survivor = reset($idexs)->_id;
foreach ($idexs as $_idex) {
if ($_idex->_id != $survivor) {
if ($msg = $_idex->delete()) {
CAppUI::setMsg($msg, UI_MSG_WARNING);
} else {
CAppUI::setMsg("Identifiant supprimé", UI_MSG_OK);
}
}
}
echo CAppUI::getMsg();
示例2: array
/**
* $Id$
*
* @package Mediboard
* @subpackage SSR
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkRead();
$nda = CValue::get("nda");
$idex = new CIdSante400();
$where["object_class"] = "= 'CSejour'";
$where["id400"] = "LIKE '{$nda}%'";
/** @var CIdSante400[] $ideces */
$ideces = $idex->loadList($where, null, "100");
$sejours = array();
foreach ($ideces as $_idex) {
/** @var CSejour $sejour */
$sejour = $_idex->loadTargetObject();
$sejour->loadRefPatient()->loadIPP();
/** @var CRHS $_rhs */
foreach ($sejour->loadBackRefs("rhss", "date_monday") as $_rhs) {
$_rhs->loadRefsNotes();
}
$sejours[$sejour->_id] = $sejour;
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("sejours", $sejours);
$smarty->display("inc_vw_rhs_sejour_search.tpl");