当前位置: 首页>>代码示例>>PHP>>正文


PHP Problem::getLastUpdateDate方法代码示例

本文整理汇总了PHP中Problem::getLastUpdateDate方法的典型用法代码示例。如果您正苦于以下问题:PHP Problem::getLastUpdateDate方法的具体用法?PHP Problem::getLastUpdateDate怎么用?PHP Problem::getLastUpdateDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Problem的用法示例。


在下文中一共展示了Problem::getLastUpdateDate方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: insert

 /**
  * bool insert(Problem $problem, int $idUser, string $login)
  *
  * Inserts a new medical problem into the deleted problems table.
  *
  * @param Problem $problem medical problem to insert
  * @param int $idUser key of user that makes deletion
  * @param string $login login session of user that makes deletion
  * @return boolean returns false, if error occurs
  * @access public
  */
 function insert($problem, $idUser, $login)
 {
     $sql = "INSERT INTO " . $this->_table;
     $sql .= " (id_problem, last_update_date, id_patient, id_member, collegiate_number, order_number, ";
     $sql .= "opening_date, closing_date, meeting_place, wording, subjective, objective, ";
     $sql .= "appreciation, action_plan, prescription, create_date, id_user, login) VALUES (";
     $sql .= "?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(), ?, ?);";
     $params = array($problem->getIdProblem(), $problem->getLastUpdateDate(), $problem->getIdPatient(), $problem->getIdMember(), urlencode($problem->getCollegiateNumber()), $problem->getOrderNumber(), $problem->getOpeningDate(), $problem->getClosingDate(), urlencode($problem->getMeetingPlace()), $problem->getWording(), urlencode($problem->getSubjective()), urlencode($problem->getObjective()), urlencode($problem->getAppreciation()), urlencode($problem->getActionPlan()), urlencode($problem->getPrescription()), intval($idUser), urlencode($login));
     return $this->exec($sql, $params);
 }
开发者ID:edubort,项目名称:openclinic-1,代码行数:21,代码来源:DelProblem.php

示例2: header

    FlashMsg::add(_("O beneficiário em questão não possui cadastro."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$problem = new Problem($idProblem);
if (!$problem) {
    FlashMsg::add(_("Nenhum atendimento foi realizado até o momento."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$formVar["id_problem"] = $idProblem;
$formVar["id_patient"] = $idPatient;
$formVar["order_number"] = $problem->getOrderNumber();
$formVar["opening_date"] = $problem->getOpeningDate();
if (!isset($formError)) {
    $formVar["last_update_date"] = $problem->getLastUpdateDate();
    $formVar["id_member"] = $problem->getIdMember();
    $formVar["closed_problem"] = $problem->getClosingDate() != "" && $problem->getClosingDate() != "0000-00-00" ? "checked" : "";
    $formVar["meeting_place"] = $problem->getMeetingPlace();
    $formVar["wording"] = $problem->getWording();
    $formVar["subjective"] = $problem->getSubjective();
    $formVar["objective"] = $problem->getObjective();
    $formVar["appreciation"] = $problem->getAppreciation();
    $formVar["action_plan"] = $problem->getActionPlan();
    $formVar["prescription"] = $problem->getPrescription();
}
/**
 * Show page
 */
$title = _("Editar Atendimento");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
开发者ID:edubort,项目名称:openclinic,代码行数:31,代码来源:problem_edit_form.php

示例3: unset

    $staffQ = new Query_Staff();
    if ($staffQ->select($problem->getIdMember())) {
        $staff = $staffQ->fetch();
        if ($staff) {
            echo HTML::section(3, _("Attending Physician"));
            echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName());
        }
        $staffQ->freeResult();
    }
    $staffQ->close();
    unset($staffQ);
    unset($staff);
}
echo HTML::section(3, _("Opening Date"));
echo HTML::para(I18n::localDate($problem->getOpeningDate()));
if ($problem->getLastUpdateDate() != "" && $problem->getLastUpdateDate() != "0000-00-00") {
    echo HTML::section(3, _("Last Update Date"));
    echo HTML::para(I18n::localDate($problem->getLastUpdateDate()));
}
if ($problem->getClosingDate() != "" && $problem->getClosingDate() != "0000-00-00") {
    echo HTML::section(3, _("Closing Date"));
    echo HTML::para(I18n::localDate($problem->getClosingDate()));
}
if ($problem->getMeetingPlace()) {
    echo HTML::section(3, _("Meeting Place"));
    echo HTML::para($problem->getMeetingPlace());
}
echo HTML::section(3, _("Wording"));
echo HTML::para(nl2br($problem->getWording()));
if ($problem->getSubjective()) {
    echo HTML::section(3, _("Subjective"));
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:problem_view.php

示例4: insert

 /**
  * bool insert(Problem $problem)
  *
  * Inserts a new medical problem into the problems table.
  *
  * @param Problem $problem medical problem to insert
  * @return boolean returns false, if error occurs
  * @access public
  */
 function insert($problem)
 {
     if (!$problem instanceof Problem) {
         $this->_error = "Argument is an inappropriate object.";
         return false;
     }
     $sql = "INSERT INTO " . $this->_table;
     $sql .= " (id_problem, last_update_date, id_patient, id_member, order_number, ";
     $sql .= "opening_date, closing_date, meeting_place, wording, subjective, objective, ";
     $sql .= "appreciation, action_plan, prescription) VALUES (NULL, ";
     $sql .= "?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);";
     $params = array($problem->getLastUpdateDate(), $problem->getIdPatient(), $problem->getIdMember(), $problem->getOrderNumber(), $problem->getOpeningDate(), $problem->getClosingDate(), urlencode($problem->getMeetingPlace()), $problem->getWording(), urlencode($problem->getSubjective()), urlencode($problem->getObjective()), urlencode($problem->getAppreciation()), urlencode($problem->getActionPlan()), urlencode($problem->getPrescription()));
     return $this->exec($sql, $params);
 }
开发者ID:edubort,项目名称:openclinic-1,代码行数:23,代码来源:Problem.php


注:本文中的Problem::getLastUpdateDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。