本文整理汇总了PHP中CIdSante400::countMatchingList方法的典型用法代码示例。如果您正苦于以下问题:PHP CIdSante400::countMatchingList方法的具体用法?PHP CIdSante400::countMatchingList怎么用?PHP CIdSante400::countMatchingList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIdSante400
的用法示例。
在下文中一共展示了CIdSante400::countMatchingList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkAdmin();
global $can;
if (CAppUI::$user->_user_type = !1) {
$can->redirect();
}
$patient_id = CValue::getOrSession("patient_id");
$naissance = CValue::getOrSession("naissance", array("day" => 1, "month" => 1, "year" => 1));
// Patient à analyser
$patient = new CPatient();
$idex = new CIdSante400();
$idex->object_class = "CPatient";
$idex->tag = CAppUI::conf("dPpatients CPatient tag_conflict_ipp") . CAppUI::conf("dPpatients CPatient tag_ipp");
$count_conflicts = $idex->countMatchingList();
$patient->load($patient_id);
// Liste des praticiens disponibles
$listPrat = array();
if ($patient->_id) {
$listPrat = new CMediusers();
$listPrat = $listPrat->loadPraticiens(PERM_READ);
$patient->loadDossierComplet();
}
if ($patient->_id) {
foreach ($patient->_ref_sejours as &$_sejour) {
$_sejour->loadNDA();
}
}
// Chargement des identifiants standards
$patient->loadIPP();
示例2: CSmartyDP
// Chargement de la liste des id4Sante400 pour le filtre
$filter = new CIdSante400();
$filter->object_id = $object_id;
$filter->object_class = $object_class;
$filter->tag = $tag;
$filter->id400 = $id400;
$filter->nullifyEmptyFields();
// Chargement de la cible si objet unique
$target = null;
if ($filter->object_id && $filter->object_class) {
$target = new $filter->object_class();
$target->load($filter->object_id);
}
// Requête du filtre
$step = 25;
$idexs = $filter->loadMatchingList(null, "{$page}, {$step}");
foreach ($idexs as $_idex) {
$_idex->loadRefs();
$_idex->getSpecialType();
}
$total_idexs = $filter->countMatchingList();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("idexs", $idexs);
$smarty->assign("total_idexs", $total_idexs);
$smarty->assign("filter", $filter);
$smarty->assign("idex_id", $idex_id);
$smarty->assign("dialog", $dialog);
$smarty->assign("page", $page);
$smarty->assign("target", $target);
$smarty->display("inc_list_identifiants.tpl");
示例3: countObjects
/**
* Count objects
*
* @return int
*/
function countObjects()
{
$idex = new CIdSante400();
$idex->tag = $this->tag;
$this->_count_objects = $idex->countMatchingList();
$where = array("tag" => " = '{$this->tag}'");
return $this->_detail_objects = $idex->countMultipleList($where, null, "object_class", null, array("object_class"), "tag");
}