本文整理匯總了PHP中CMbObject::loadLastLog方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMbObject::loadLastLog方法的具體用法?PHP CMbObject::loadLastLog怎麽用?PHP CMbObject::loadLastLog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMbObject
的用法示例。
在下文中一共展示了CMbObject::loadLastLog方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: build
/**
* Build event
*
* @param CMbObject $object Object
*
* @see parent::build()
*
* @return void
*/
function build($object)
{
// Traitement sur le mbObject
$this->object = $object;
$this->last_log = $object->loadLastLog();
// Génération de l'échange
$this->generateExchange();
// Dans le cas où l'on charge un message XML HL7v3 standard
if (!$this->dom) {
$this->dom = new CHL7v3MessageXML("utf-8", $this->version);
}
}
示例2: build
/**
* Build HPR message
*
* @param CMbObject $object Object to use
*
* @return void
*/
function build($object)
{
// Traitement sur le mbObject
$this->object = $object;
$this->last_log = $object->loadLastLog();
$this->version = "H" . $this->_receiver->_configs["{$this->type}_version"];
$this->type_liaison = $this->_receiver->_configs["{$this->type}_sous_type"];
// Génération de l'échange
$this->generateExchange();
// Création du message HL7
$message = new CHPrimSanteMessage($this->version);
$message->name = $this->msg_codes;
$this->message = $message;
$this->addH();
}
示例3: build
/**
* Build event
*
* @param CMbObject $object Object
*
* @see parent::build()
*
* @return void
*/
function build($object)
{
// Traitement sur le mbObject
$this->object = $object;
$this->last_log = $object->loadLastLog();
// Récupération de la version HL7 en fonction du receiver et de la transaction
$this->version = $this->_receiver->_configs[$this->transaction . "_HL7_version"];
// Génération de l'échange
$this->generateExchange();
$terminator = $this->getSegmentTerminator($this->_receiver->_configs["ER7_segment_terminator"]);
// Création du message HL7
$message = new CHL7v2Message($this->version);
$message->segmentTerminator = $terminator;
$message->name = $this->msg_codes;
$this->message = $message;
}
示例4: getCode
function getCode(CMbObject $scheduling)
{
$current_log = $scheduling->loadLastLog();
if (!in_array($current_log->type, array("create", "store"))) {
return null;
}
$receiver = $scheduling->_receiver;
$configs = $receiver->_configs;
$scheduling->loadOldObject();
// Création d'un rendez-vous
if ($current_log->type == "create") {
return "S12";
}
// Déplacement d'un rendez-vous (heure ou plageconsult_id)
if ($scheduling->fieldModified("heure") || $scheduling->fieldModified("plageconsult_id")) {
return "S13";
}
// Modification d'un rendez-vous
if ($scheduling->fieldModified("annule", "1")) {
return "S15";
}
// Annulation d'un rendez-vous
return "S14";
}