當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Test::getPathFilename方法代碼示例

本文整理匯總了PHP中Test::getPathFilename方法的典型用法代碼示例。如果您正苦於以下問題:PHP Test::getPathFilename方法的具體用法?PHP Test::getPathFilename怎麽用?PHP Test::getPathFilename使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Test的用法示例。


在下文中一共展示了Test::getPathFilename方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: update

 /**
  * bool update(Test $test)
  *
  * Update a medical test in the medical tests table.
  *
  * @param Test $test medical test to update
  * @return boolean returns false, if error occurs
  * @access public
  */
 function update($test)
 {
     if (!$test instanceof Test) {
         $this->_error = "Argument is an inappropriate object.";
         return false;
     }
     $sql = "UPDATE " . $this->_table . " SET " . "document_type=?, " . "path_filename=? " . "WHERE id_test=?;";
     $params = array(urlencode($test->getDocumentType()), urlencode($test->getPathFilename()), $test->getIdTest());
     return $this->exec($sql, $params);
 }
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:19,代碼來源:Test.php

示例2: array

$title = _("Delete Medical Test");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
require_once "../layout/header.php";
//$returnLocation = "../medical/test_list.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/test_list.php";
// controlling var
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", _("View Medical Tests") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
/**
 * Confirm form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/test_del.php'));
$tbody = array();
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete medical test, %s, from list?"), $test->getPathFilename()));
$row = Form::hidden("id_problem", $idProblem);
$row .= Form::hidden("id_test", $idTest);
$row .= Form::hidden("id_patient", $idPatient);
$row .= Form::hidden("path_filename", $test->getPathFilename());
$tbody[] = $row;
$tfoot = array(Form::button("delete", _("Delete")) . Form::generateToken());
$options = array('class' => 'center');
echo Form::fieldset($title, $tbody, $tfoot, $options);
echo HTML::end('form');
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:test_del_confirm.php

示例3: Problem

    exit;
}
$problem = new Problem($idProblem);
if (!$problem) {
    FlashMsg::add(_("That medical problem does not exist."), OPEN_MSG_ERROR);
    header("Location: ../medical/patient_search_form.php");
    exit;
}
$test = new Test($idProblem, $idTest);
if (!$test) {
    FlashMsg::add(_("That medical test does not exist"), OPEN_MSG_ERROR);
    header("Location: ../medical/test_list.php");
    exit;
}
$formVar["document_type"] = $test->getDocumentType();
$formVar["path_filename"] = $test->getPathFilename();
/**
 * Show page
 */
$title = _("Edit Medical Test");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
$focusFormField = "document_type";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/test_list.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient;
$returnLocation = "../medical/test_list.php";
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", _("View Medical Tests") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
開發者ID:edubort,項目名稱:openclinic-1,代碼行數:31,代碼來源:test_edit_form.php


注:本文中的Test::getPathFilename方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。