当前位置: 首页>>代码示例>>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;未经允许,请勿转载。