本文整理汇总了PHP中CValue::sessionAbs方法的典型用法代码示例。如果您正苦于以下问题:PHP CValue::sessionAbs方法的具体用法?PHP CValue::sessionAbs怎么用?PHP CValue::sessionAbs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CValue
的用法示例。
在下文中一共展示了CValue::sessionAbs方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
$patient->assure_nom = $name;
$patient->assure_prenom = $firstName;
$patient->unescapeValues();
if ($naissance_day && $naissance_month && $naissance_year) {
$patient->naissance = sprintf('%04d-%02d-%02d', $naissance_year, $naissance_month, $naissance_day);
}
if (CAppUI::conf("dPpatients CPatient default_value_allow_sms", CGroups::loadCurrent())) {
$patient->allow_sms_notification = 1;
}
}
// Peut etre pas besoin de verifier si on n'utilise pas VitaleVision
if ($useVitale && CAppUI::pref('LogicielLectureVitale') == 'none' && CModule::getActive("fse")) {
$patVitale = new CPatient();
$cv = CFseFactory::createCV();
if ($cv) {
$cv->getPropertiesFromVitale($patVitale, CValue::sessionAbs('administrative_data'));
$patVitale->nullifyEmptyFields();
$patient->extendsWith($patVitale);
$patient->updateFormFields();
$patient->_bind_vitale = "1";
}
}
if ($covercard && CModule::getActive("covercard")) {
$covercardExec = CCoverCard::process($covercard);
if ($covercardExec->queryNumber) {
CCoverCard::updatePatientFromCC($patient, $covercardExec);
}
}
// Chargement du nom_fr du pays de naissance
if ($patient_id) {
$patient->updateNomPaysInsee();
示例2: store
/**
* @see parent::store()
*
* @return null|string
*/
function store()
{
$this->generateIV();
/*
* Lorsque le trousseau existe et que la phrase est modifiée
* Charge tous les mots de passe et les re-chiffre
*/
foreach ($this->loadRefsCategories() as $_category) {
foreach ($_category->loadRefsPasswords() as $_password) {
$_password->renew(CValue::sessionAbs("passphrase"), $this->_passphrase);
}
}
$this->sample = $this->encrypt();
if ($msg = parent::store()) {
return $msg;
}
}
示例3: CSejour
$patient->ville = $patient_ville;
$patient->cp = $patient_cp;
$patient->sexe = $patient_sexe;
$sejour = new CSejour();
$sejour->_admission = $admit_class;
$sejour->_service = $admit_service;
$sejour->_chambre = $admit_room;
$sejour->_lit = $admit_bed;
$sejour->_praticien_attending = $admit_attending_doctor;
// Praticien
$sejour->_praticien_referring = $admit_referring_doctor;
// Nom du médecin adressant
$sejour->_praticien_admitting = $admit_admitting_doctor;
// Médecin traitant
$sejour->_praticien_consulting = $admit_consulting_doctor;
$cn_receiver_guid = CValue::sessionAbs("cn_receiver_guid");
if ($cn_receiver_guid) {
$receiver_hl7v2 = CMbObject::loadFromGuid($cn_receiver_guid);
$receivers = array($receiver_hl7v2);
} else {
$receiver_hl7v2 = new CReceiverHL7v2();
$receiver_hl7v2->actif = 1;
$receiver_hl7v2->group_id = CGroups::loadCurrent()->_id;
$receivers = $receiver_hl7v2->loadMatchingList();
}
$profil = "PDQ";
$transaction = "ITI21";
$message = "QBP";
$code = "Q22";
if ($admit_class || $admit_service || $admit_room || $admit_bed || $admit_attending_doctor || $admit_referring_doctor || $admit_consulting_doctor || $admit_admitting_doctor) {
$transaction = "ITI22";
示例4: CPasswordKeeper
<?php
/**
* $Id: vw_export_keeper.php 18956 2013-04-29 07:45:28Z kgrisel $
*
* @category Password Keeper
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @link http://www.mediboard.org */
CPasswordKeeper::checkHTTPS();
CCanDo::checkAdmin();
$password_keeper_id = CValue::postOrSession("password_keeper_id");
$oldPassphrase = CValue::post("oldPassphrase");
$newPassphrase = CValue::post("newPassphrase");
$passphrase = CValue::sessionAbs("passphrase");
if ($passphrase != $oldPassphrase) {
$msg = "Phrase de passe incorrecte.";
CAppUI::stepAjax($msg, UI_MSG_ERROR);
}
$user = CMediusers::get();
$keeper = new CPasswordKeeper();
$keeper->load($password_keeper_id);
if ($keeper->_id && $keeper->user_id == $user->_id) {
$dom = new CMbXMLDocument("ISO-8859-1");
$keeperNode = $dom->addElement($dom, "keeper");
$dom->addAttribute($keeperNode, "name", $keeper->keeper_name);
$categoriesNode = $dom->addElement($keeperNode, "categories");
foreach ($keeper->loadRefsCategories() as $_category) {
$categoryNode = $dom->addElement($categoriesNode, "category");
$dom->addAttribute($categoryNode, "name", $_category->category_name);
示例5: getPassword
/**
* Déchiffrement d'un mot de passe
*
* @param string $passphrase Phrase de passe à appliquer
*
* @return string
*/
function getPassword($passphrase = null)
{
if (!$passphrase) {
$passphrase = CValue::sessionAbs("passphrase");
}
return CMbSecurity::decrypt(CMbSecurity::AES, CMbSecurity::CTR, $passphrase, $this->password, $this->iv);
}
示例6: sendFormatAction
/**
* Trigger action on the right handler
*
* @param string $action Action name
* @param CMbObject $mbObject Object
*
* @return void
*/
function sendFormatAction($action, CMbObject $mbObject)
{
if (!$action) {
return;
}
$cn_receiver_guid = CValue::sessionAbs("cn_receiver_guid");
$receiver = new CInteropReceiver();
// Parcours des receivers actifs
if (!$cn_receiver_guid) {
// On est dans le cas d'un store d'un objet depuis MB
if (!$mbObject->_eai_sender_guid) {
$receivers = $receiver->getObjects(true);
} else {
$receivers = array();
/** @var CInteropSender $sender */
$sender = CMbObject::loadFromGuid($mbObject->_eai_sender_guid);
// On utilise le routeur de l'EAI
if (CAppUI::conf("eai use_routers")) {
// Récupération des receivers de ttes les routes actives
/** @var CEAIRoute[] $routes */
$where = array();
$where["active"] = " = '1'";
$routes = $sender->loadBackRefs("routes_sender", null, null, null, null, null, null, $where);
foreach ($routes as $_route) {
if (!$_route->active) {
continue;
}
$receiver = $_route->loadRefReceiver();
$receivers[get_class($receiver)][] = $receiver;
}
} else {
if (!$mbObject instanceof CPatient) {
return;
}
$no_group = null;
// Dans le cas des patients on va envoyer à tous les destinataires
// On ne transmet pas le message aux destinataires du même établissement que celui de l'expéditeur
if (!CAppUI::conf("eai send_messages_with_same_group")) {
$no_group = $sender->group_id;
}
/* @todo ATTENTION PROBLEMATIQUE SI PATIENT != CASSE */
//$receivers = $receiver->getObjects(true, $no_group);
}
}
} else {
if ($cn_receiver_guid == "none") {
return;
}
$receiver = CMbObject::loadFromGuid($cn_receiver_guid);
if (!$receiver || !$receiver->_id) {
return;
}
$receivers[$receiver->_class][] = $receiver;
}
foreach ($receivers as $_receivers) {
if (!$_receivers) {
continue;
}
/** @var CInteropReceiver $_receiver */
foreach ($_receivers as $_receiver) {
// Destinataire non actif on envoi pas
if (!$_receiver->actif) {
continue;
}
$handler = $_receiver->getFormatObjectHandler($this);
if (!$handler) {
continue;
}
$_receiver->loadConfigValues();
$_receiver->loadRefsMessagesSupported();
// Affectation du receiver à l'objet
$mbObject->_receiver = $_receiver;
$handlers = !is_array($handler) ? array($handler) : $handler;
// On parcours les handlers
foreach ($handlers as $_handler) {
// Récupère le handler du format
$format_object_handler = new $_handler();
// Envoi l'action au handler du format
try {
$format_object_handler->{$action}($mbObject);
} catch (Exception $e) {
CAppUI::setMsg($e->getMessage(), UI_MSG_WARNING);
}
}
}
}
}