本文整理汇总了PHP中Patient::setName方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::setName方法的具体用法?PHP Patient::setName怎么用?PHP Patient::setName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Patient
的用法示例。
在下文中一共展示了Patient::setName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeAddPatient
public function executeAddPatient(sfWebRequest $request)
{
if ($request->isMethod('Post')) {
/*$a = new Criteria();
$designation_record = DesignationPeer::DoSelectOne($a);
$department_id = $designation_record->getDepartmentId();*/
$patient = new Patient();
$dob = $this->getRequestParameter('dob[year]') . '-' . $this->getRequestParameter('dob[month]') . '-' . $this->getRequestParameter('dob[day]');
$patient->setName($this->getRequestParameter('name'));
$patient->setCnic($this->getRequestParameter('cnic'));
$patient->setDob($dob);
$patient->setGender($this->getRequestParameter('gender[0]'));
$patient->setContactCell($this->getRequestParameter('contact_cell'));
$patient->setStatus(Constant::RECORD_STATUS_ACTIVE);
$patient->save();
$this->getUser()->setFlash('SUCCESS_MESSAGE', 'Patient Added Successfully');
$this->redirect('Patient/list');
}
// end if
}
示例2: Patient
<?php
require "classes/abstraction/patient.php";
$patient = new Patient();
$patient->setName("bob");
echo $patient->getName() . "<br>";
$patient->setWeight('200');
$patient->setHeight('72');
echo $patient->getWeight() . "<br>";
echo $patient->getHeight() . "<br>";