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


PHP CAppUI::requireModuleFile方法代碼示例

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


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

示例1: prepare

 /**
  * Préparation de dompdf pour la conversion
  * 
  * @param string $format      format de la page
  * @param string $orientation orientation de la page
  * 
  * @return void
  */
 function prepare($format, $orientation)
 {
     CAppUI::requireModuleFile("dPcompteRendu", "dompdf_config");
     CAppUI::requireLibraryFile("dompdf/dompdf_config.inc");
     $this->dompdf = new dompdf();
     $this->dompdf->set_base_path(realpath(dirname(__FILE__) . "/../../../../"));
     $this->dompdf->set_paper($format, $orientation);
     if (CAppUI::conf("dPcompteRendu CCompteRendu dompdf_host")) {
         $this->dompdf->set_protocol(isset($_SERVER["HTTPS"]) ? "https://" : "http://");
         $this->dompdf->set_host($_SERVER["SERVER_NAME"]);
     }
 }
開發者ID:fbone,項目名稱:mediboard4,代碼行數:20,代碼來源:CDomPDFConverter.class.php

示例2: CService

<?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$
 */
CCanDo::checkRead();
global $m;
CAppUI::requireModuleFile($m, "inc_vw_affectations");
$date = CValue::getOrSession("date", CMbDT::date());
$mode = CValue::getOrSession("mode", 0);
$service_id = CValue::get("service_id");
// Chargement du service
$service = new CService();
$service->load($service_id);
loadServiceComplet($service, $date, $mode);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("demain", CMbDT::date("+ 1 day", $date));
$smarty->assign("curr_service", $service);
$smarty->display("inc_affectations_services.tpl");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:27,代碼來源:httpreq_vw_aff_service.php

示例3:

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage system
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$date = CValue::getOrSession("date", CMbDT::date());
$user_id = CValue::getOrSession("user_id");
$interval = CValue::getOrSession("interval", "one-day");
CView::enforceSlave();
CAppUI::requireModuleFile("dPstats", "graph_userlog");
$to = CMbDT::date("+1 DAY", $date);
switch ($interval) {
    case "one-day":
        $from = CMbDT::date("-1 DAY", $to);
        break;
    case "one-week":
        $from = CMbDT::date("-1 WEEK", $to);
        break;
    case "height-weeks":
        $from = CMbDT::date("-8 WEEK", $to);
        break;
    case "one-year":
        $from = CMbDT::date("-1 YEAR", $to);
        break;
    case "four-years":
開發者ID:fbone,項目名稱:mediboard4,代碼行數:30,代碼來源:vw_user_logs.php

示例4: COperation

<?php

/**
 * $Id:$
 *
 * @package    Mediboard
 * @subpackage bloodSalvage
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision:$
 */
CAppUI::requireModuleFile("bloodSalvage", "inc_personnel");
$selOp = new COperation();
$blood_salvage = new CBloodSalvage();
$date = CValue::getOrSession("date", CMbDT::date());
$op = CValue::getOrSession("op");
if ($op) {
    $selOp->load($op);
    $selOp->loadRefs();
    $where = array();
    $where["operation_id"] = "='{$selOp->_id}'";
    $blood_salvage->loadObject($where);
    $blood_salvage->loadRefsFwd();
    $blood_salvage->loadRefPlageOp();
}
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("blood_salvage", $blood_salvage);
$smarty->assign("selOp", $selOp);
$smarty->display("vw_bloodSalvage_sspi.tpl");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:30,代碼來源:vw_bloodSalvage_sspi.php

示例5:

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage forms
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkEdit();
$_GET["object_class"] = "CExList";
//$_GET["col"] = array("name");
CAppUI::requireModuleFile("system", "vw_object_tree_explorer");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:15,代碼來源:view_ex_list.php

示例6:

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CAppUI::requireModuleFile('system', 'object_merger');
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:12,代碼來源:fusion_medecin.php

示例7:

<?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$
 */
CAppUI::requireModuleFile("dPhospi", "inc_vw_affectations");
$services_ids = CValue::getOrSession("services_ids");
$triAdm = CValue::getOrSession("triAdm");
$_type_admission = CValue::getOrSession("_type_admission", "ambucomp");
$filter_function = CValue::getOrSession("filter_function");
$date = CValue::getOrSession("date");
$granularite = CValue::getOrSession("granularite");
$readonly = CValue::getOrSession("readonly", 0);
$duree_uscpo = CValue::getOrSession("duree_uscpo", "0");
$isolement = CValue::getOrSession("isolement", "0");
$prestation_id = CValue::getOrSession("prestation_id", "");
$item_prestation_id = CValue::getOrSession("item_prestation_id");
$group_id = CGroups::loadCurrent()->_id;
if (CAppUI::conf("dPhospi prestations systeme_prestations", $group_id) == "standard") {
    CValue::setSession("prestation_id", "");
    $prestation_id = "";
}
if (is_array($services_ids)) {
    CMbArray::removeValue("", $services_ids);
}
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:ajax_vw_non_places.php

示例8:

<?php

/**
 * $Id: vw_dispensation.php 23731 2014-06-26 15:12:54Z phenxdesign $
 *
 * @package    Mediboard
 * @subpackage Soins
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 23731 $
 */
CAppUI::requireModuleFile("pharmacie", "vw_idx_dispensation_v2");
開發者ID:fbone,項目名稱:mediboard4,代碼行數:12,代碼來源:vw_dispensation.php

示例9: array

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage developpement
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$locales = CAppUI::flattenCachedLocales(CAppUI::$lang);
$tabs = array();
foreach ($modules = CModule::getInstalled() as $module) {
    CAppUI::requireModuleFile($module->mod_name, "index");
    if (is_array($module->_tabs)) {
        foreach ($module->_tabs as $tab) {
            $tabs[$tab]["name"] = "mod-{$module->mod_name}-tab-{$tab}";
            $tabs[$tab]["locale"] = CValue::read($locales, $tabs[$tab]["name"]);
        }
    }
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("module", $modules);
$smarty->assign("tabs", $tabs);
$smarty->display("mnt_module_actions.tpl");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:28,代碼來源:mnt_module_actions.php

示例10:

<?php

/**
 * $Id$
 * 
 * @package    Mediboard
 * @subpackage reservation
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
global $current_m;
$current_m = "reservation";
CAppUI::requireModuleFile("dPadmissions", "vw_sejours_validation");
開發者ID:fbone,項目名稱:mediboard4,代碼行數:14,代碼來源:vw_sejours_validation.php

示例11: array

 * $Id: view_ressources_logs.php 27868 2015-04-04 16:59:04Z mytto $
 *
 * @package    Mediboard
 * @subpackage System
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision: 27868 $
 */
CCanDo::checkRead();
$date = CValue::getOrSession("date", CMbDT::date());
$groupres = CValue::getOrSession("groupres", 1);
$element = CValue::getOrSession("element", "duration");
$interval = CValue::getOrSession("interval", "day");
$numelem = CValue::getOrSession("numelem", 6);
CView::enableSlave();
CAppUI::requireModuleFile('dPstats', 'graph_ressourceslog');
$next = CMbDT::date("+1 DAY", $date);
switch ($interval) {
    default:
    case "day":
        $from = CMbDT::date("-1 DAY", $next);
        break;
    case "month":
        $from = CMbDT::date("-1 MONTH", $next);
        break;
    case "year":
        $from = CMbDT::date("-6 MONTH", $next);
        break;
}
$graphs = array();
if ($groupres == 1) {
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:view_ressources_logs.php

示例12:

<?php

/**
 * Liste des consultations de sage-femme
 *
 * @category Maternite
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id:$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
global $mode_maternite;
$mode_maternite = true;
CAppUI::requireModuleFile('dPcabinet', 'vw_journee');
開發者ID:fbone,項目名稱:mediboard4,代碼行數:16,代碼來源:vw_consultations.php

示例13: CConsultation

<?php

/**
 * dPboard
 *
 * @category Board
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id:$
 * @link     http://www.mediboard.org
 */
global $prat;
CAppUI::requireModuleFile('dPstats', 'graph_consultations');
$filterConsultation = new CConsultation();
$filterConsultation->_date_min = CValue::getOrSession("_date_min", CMbDT::date("-1 YEAR"));
$rectif = CMbDT::transform("+0 DAY", $filterConsultation->_date_min, "%d") - 1;
$filterConsultation->_date_min = CMbDT::date("-{$rectif} DAYS", $filterConsultation->_date_min);
$filterConsultation->_date_max = CValue::getOrSession("_date_max", CMbDT::date());
$rectif = CMbDT::transform("+0 DAY", $filterConsultation->_date_max, "%d") - 1;
$filterConsultation->_date_max = CMbDT::date("-{$rectif} DAYS", $filterConsultation->_date_max);
$filterConsultation->_date_max = CMbDT::date("+ 1 MONTH", $filterConsultation->_date_max);
$filterConsultation->_date_max = CMbDT::date("-1 DAY", $filterConsultation->_date_max);
$filterConsultation->_praticien_id = $prat->_id;
$graphs = array(graphConsultations($filterConsultation->_date_min, $filterConsultation->_date_max, $filterConsultation->_praticien_id));
// Variables de templates
$smarty = new CSmartyDP();
$smarty->assign("filterConsultation", $filterConsultation);
$smarty->assign("prat", $prat);
$smarty->assign("graphs", $graphs);
$smarty->display("vw_stats_consultations.tpl");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:31,代碼來源:vw_stats_consultations.php

示例14:

<?php

/**
 * dPboard
 *
 * @category Board
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  SVN: $Id:$
 * @link     http://www.mediboard.org
 */
CAppUI::requireModuleFile('dPhospi', 'vw_idx_sejour');
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:13,代碼來源:vw_idx_sejour.php

示例15:

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
// A quoi sert cette redirection ? Gestion des droits ?
// Inutilisé pour le moment car pose le problème de contexte pour l'inclusion de templates
CAppUI::requireModuleFile("dPfiles", "httpreq_vw_listfiles");
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:14,代碼來源:httpreq_vw_listfiles.php


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