本文整理汇总了PHP中CDoObjectAddEdit::doBind方法的典型用法代码示例。如果您正苦于以下问题:PHP CDoObjectAddEdit::doBind方法的具体用法?PHP CDoObjectAddEdit::doBind怎么用?PHP CDoObjectAddEdit::doBind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDoObjectAddEdit
的用法示例。
在下文中一共展示了CDoObjectAddEdit::doBind方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: doBind
function doBind()
{
parent::doBind();
// recuperation du sejour_id
$_sejour_id = CValue::post("_sejour_id", null);
// si pas de sejour_id, redirection
if (!$_sejour_id) {
$this->doRedirect();
}
// Creation du nouvel antecedent
unset($_POST["antecedent_id"]);
$this->_obj = $this->_old;
$this->_obj->_id = null;
$this->_obj->antecedent_id = null;
// Calcul de la valeur de l'id du dossier_medical du sejour
$this->_obj->dossier_medical_id = CDossierMedical::dossierMedicalId($_sejour_id, "CSejour");
}
示例2: doBind
/**
* @see parent::doBind()
*/
function doBind()
{
parent::doBind();
if ($this->_obj->_edit_modificateurs) {
$this->_obj->modificateurs = "";
$dents = array();
foreach ($_POST as $propName => $propValue) {
$matches = null;
if (preg_match("/modificateur_(.)(.)(.)?/", $propName, $matches)) {
$modificateur = $matches[1];
if (strpos($this->_obj->modificateurs, $matches[1]) === false) {
$this->_obj->modificateurs .= $modificateur;
if (isset($matches[3]) && $matches[3] == 2) {
$this->_obj->modificateurs .= $matches[2];
}
}
}
}
}
$this->_obj->loadRefObject();
$this->_ref_object = $this->_obj->_ref_object;
}
示例3: CDoObjectAddEdit
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage Labo
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$do = new CDoObjectAddEdit("CPrescriptionLaboExamen");
$pack = new CPackExamensLabo();
$pack->load($_POST["_pack_examens_labo_id"]);
$pack->loadRefs();
foreach ($pack->_ref_items_examen_labo as $item) {
$_POST["examen_labo_id"] = $item->_ref_examen_labo->_id;
$_POST["pack_examens_labo_id"] = $pack->_id;
$do->doBind();
$do->doStore();
}
$do->ajax = 1;
$do->doRedirect();