本文整理汇总了PHP中CMbObject类的典型用法代码示例。如果您正苦于以下问题:PHP CMbObject类的具体用法?PHP CMbObject怎么用?PHP CMbObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CMbObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Export constructor
*
* @param CMbObject $object Object to export
* @param null $backrefs_tree Backrefs tree
*
* @throws CMbException
*/
function __construct(CMbObject $object, $backrefs_tree = null)
{
if (!$object->getPerm(PERM_READ)) {
throw new CMbException("Permission denied");
}
$this->object = $object;
$this->backrefs_tree = isset($backrefs_tree) ? $backrefs_tree : $object->getExportedBackRefs();
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:16,代码来源:CMbObjectExport.class.php
示例2: getObject
/**
* Get target object
*
* @return CMbObject
*/
function getObject()
{
if (!$this->object) {
$this->object = CStoredObject::loadFromGuid($this->object_guid);
}
if ($this->object) {
$this->object->loadComplete();
}
return $this->object;
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:15,代码来源:CViewHistory.class.php
示例3: storeObject
/**
* Fonction utilitaire pour la sauvegarde rapide d'un object avec génération du message
*
* @param CMbObject $object Objet à enregister
*
* @return void
*/
function storeObject($object)
{
$title = $object->_id ? "-msg-modify" : "-msg-create";
if ($msg = $object->store()) {
CAppUI::setMsg($msg, UI_MSG_ERROR);
echo CAppUI::getMsg();
CApp::rip();
}
CAppUI::setMsg(CAppUI::tr(get_class($object) . $title), UI_MSG_OK);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:17,代码来源:do_dossier_provisoire_aed.php
示例4: storeObject
/**
* Fonction utilitaire pour la sauvegarde rapide d'un object avec génération du message
*
* @param CMbObject $object Objet à enregister
*
* @return void
*/
function storeObject($object)
{
$title = $object->_id ? "-msg-modify" : "-msg-create";
if ($msg = $object->store()) {
CAppUI::setMsg($msg, UI_MSG_ERROR);
echo CAppUI::getMsg();
// Il peut y avoir un msg de retour postérieur à la création de l'objet
// On continue donc le processus de création de la naissance
//CApp::rip();
}
CAppUI::setMsg(CAppUI::tr(get_class($object) . $title), UI_MSG_OK);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:19,代码来源:do_create_naissance_aed.php
示例5: 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);
}
}
开发者ID:fbone,项目名称:mediboard4,代码行数:21,代码来源:CHL7v3Event.class.php
示例6: 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();
}
开发者ID:fbone,项目名称:mediboard4,代码行数:22,代码来源:CHPrimSanteEvent.class.php
示例7: 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;
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:25,代码来源:CHL7v2Event.class.php
示例8: doRedirect
/**
* @see parent::doRedirect()
*/
function doRedirect()
{
if (CAppUI::conf("dPsalleOp CActeCCAM codage_strict") || !$this->_old->_id || !$this->_obj->_id) {
$this->_ref_object->correctActes();
}
parent::doRedirect();
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:do_acteccam_aed.php
示例9: getSpec
/**
* @see parent::getSpec()
*/
function getSpec()
{
$spec = parent::getSpec();
$spec->table = 'interv_hors_plages';
$spec->key = 'interv_hors_plage_id';
return $spec;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CIntervHorsPlage.class.php
示例10: store
/**
* @see parent::store()
*/
function store()
{
if (!$this->_id) {
$this->group_id = CGroups::loadCurrent()->_id;
}
return parent::store();
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:10,代码来源:CExClassCategory.class.php
示例11: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_classeNyha = "";
if ($this->q1 == 1) {
if ($this->q2a !== null && $this->q2a == 0) {
$this->_classeNyha = "Classe III";
}
if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 1) {
$this->_classeNyha = "Classe I";
}
if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 0) {
$this->_classeNyha = "Classe II";
}
} elseif ($this->q1 == 0) {
if ($this->q3a !== null && $this->q3a == 0) {
$this->_classeNyha = "Classe III";
}
if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 1) {
$this->_classeNyha = "Classe III";
}
if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 0) {
$this->_classeNyha = "Classe IV";
}
}
$this->_view = "Classification NYHA : {$this->_classeNyha}";
}
开发者ID:fbone,项目名称:mediboard4,代码行数:30,代码来源:CExamNyha.class.php
示例12: getProps
/**
* @see parent::getProps()
*/
function getProps()
{
$specs = parent::getProps();
$specs["libelle"] = "str notNull";
$specs["color"] = "color";
return $specs;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CColorLibelleSejour.class.php
示例13: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->libelle ? $this->libelle : $this->code;
$this->_shortview = $this->code;
$this->_font_color = CColorSpec::get_text_color($this->color) > 130 ? '000000' : "ffffff";
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CChargePriceIndicator.class.php
示例14: getProps
/**
* @see parent::getProps()
*/
function getProps()
{
$props = parent::getProps();
$props["sejour_id"] = "ref notNull class|CSejour";
$props["user_id"] = "ref notNull class|CMediusers";
return $props;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CUserSejour.class.php
示例15: updateFormFields
function updateFormFields()
{
parent::updateFormFields();
$this->_view = $this->nom;
$this->_debut = substr($this->debut, 0, 2);
$this->_fin = substr($this->fin, 0, 2);
}
开发者ID:fbone,项目名称:mediboard4,代码行数:7,代码来源:CTypeRepas.class.php
示例16: store
/**
* @see parent::store()
*/
function store()
{
if ($this->fieldModified("content") || !$this->last_modified) {
$this->last_modified = CMbDT::dateTime();
}
return parent::store();
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:10,代码来源:CContentHTML.class.php
示例17: getSpec
function getSpec()
{
$spec = parent::getSpec();
$spec->dsn = 'hl7v2';
$spec->incremented = 0;
return $spec;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:7,代码来源:CHL7v2TableObject.class.php
示例18: loadView
/**
* @see parent::loadView()
*/
function loadView()
{
parent::loadView();
$this->loadRefExClassField();
$this->loadRefExClassTriggered();
$this->_view = $this->_ref_ex_class_field->_view . " > " . $this->_ref_ex_class_triggered->_view;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CExClassFieldTrigger.class.php
示例19: updateFormFields
/**
* @see parent::updateFormFields()
*/
function updateFormFields()
{
parent::updateFormFields();
$this->loadRefsFwd();
$this->_shortview = $this->_ref_examen_labo->_shortview;
$this->_view = $this->_ref_examen_labo->_view;
}
开发者ID:fbone,项目名称:mediboard4,代码行数:10,代码来源:CPackItemExamenLabo.class.php
示例20: updatePlainFields
/**
* @see parent::updatePlainFields()
*/
function updatePlainFields()
{
parent::updatePlainFields();
if ($this->nom_icone) {
$this->nom_icone = basename($this->nom_icone);
}
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:10,代码来源:CConsultationCategorie.class.php
注:本文中的CMbObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论