當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CMediusers::loadAll方法代碼示例

本文整理匯總了PHP中CMediusers::loadAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMediusers::loadAll方法的具體用法?PHP CMediusers::loadAll怎麽用?PHP CMediusers::loadAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CMediusers的用法示例。


在下文中一共展示了CMediusers::loadAll方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CMediusers

 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
CApp::setMemoryLimit("512M");
$ds = CSQLDataSource::get("std");
$function_id = CValue::get("function_id");
$chir_ids = CValue::get("chir_ids");
$date = CValue::get("date", CMbDT::date());
// Praticiens sélectionnés
$user = new CMediusers();
$praticiens = array();
if ($function_id) {
    $praticiens = CConsultation::loadPraticiens(PERM_EDIT, $function_id);
}
if ($chir_ids) {
    $praticiens = $user->loadAll(explode("-", $chir_ids));
}
//plages de consultation
$where = array();
$where["chir_id"] = CSQLDataSource::prepareIn(array_keys($praticiens));
$where["date"] = " = '{$date}'";
$Pconsultation = new CPlageconsult();
$Pconsultations = $Pconsultation->loadList($where, array("debut"));
$nbConsultations = 0;
$consultations = array();
$resumes_patient = array();
/** @var $Pconsultations CPlageConsult[] */
foreach ($Pconsultations as $_plage_consult) {
    $_plage_consult->loadRefsConsultations(false, false);
    $_plage_consult->loadRefChir();
    $_plage_consult->countPatients();
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:vw_offline_consult_patients.php

示例2: getActiveTherapeutes

 /**
  * Find all therapeutes having planned events 
  * 
  * @param date $min Minimal date to start from
  * @param date $max Maximal date to stop to
  * 
  * @return array[CMediusers]
  */
 static function getActiveTherapeutes($min, $max)
 {
     $max = CMbDT::date("+1 DAY", $max);
     $query = "SELECT DISTINCT therapeute_id FROM `evenement_ssr` \r\n      WHERE debut BETWEEN '{$min}' AND '{$max}'";
     $that = new self();
     $ds = $that->_spec->ds;
     $therapeute_ids = $ds->loadColumn($query);
     $therapeute = new CMediusers();
     return $therapeute->loadAll($therapeute_ids);
 }
開發者ID:fbone,項目名稱:mediboard4,代碼行數:18,代碼來源:CEvenementSSR.class.php

示例3: loadRefsAllExecutants

 /**
  * Charge les exécutants de cet activité et fournit le nombre d'occurences par exécutants
  *
  * @return CMediusers[]
  *
  * @see self::_count_actes_by_executant
  */
 function loadRefsAllExecutants()
 {
     // Comptage par executant
     $query = "SELECT therapeute_id, COUNT(*)\r\n      FROM `acte_cdarr` \r\n      LEFT JOIN `evenement_ssr` ON  `evenement_ssr`.`evenement_ssr_id` = `acte_cdarr`.`evenement_ssr_id`\r\n      WHERE `code` = '{$this->code}'\r\n      GROUP BY `therapeute_id`";
     $acte = new CActeCdARR();
     $ds = $acte->getDS();
     $counts = $ds->loadHashList($query);
     arsort($counts);
     // Chargement des executants
     $user = new CMediusers();
     /** @var CMediusers[] $executants */
     $executants = $user->loadAll(array_keys($counts));
     foreach ($executants as $_executant) {
         $_executant->loadRefFunction();
     }
     // Valeurs de retour
     $this->_count_actes_by_executant = $counts;
     return $this->_ref_all_executants = $executants;
 }
開發者ID:fbone,項目名稱:mediboard4,代碼行數:26,代碼來源:CActiviteCdARR.class.php


注:本文中的CMediusers::loadAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。