本文整理汇总了PHP中Schedule::buildAllTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Schedule::buildAllTables方法的具体用法?PHP Schedule::buildAllTables怎么用?PHP Schedule::buildAllTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schedule
的用法示例。
在下文中一共展示了Schedule::buildAllTables方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ajaxSchedule
public function ajaxSchedule($request, $response)
{/*{{{*/
header('Content-Type: text/html; charset=GBK');
$allScheduleTables = Schedule::buildAllTables(array($this->_newSpace->host));
$allScheduleTable = $allScheduleTables[$this->_newSpace->host->primaryId];
$response->AllScheduleTables = $allScheduleTable;
}/*}}}*/
示例2: ajaxSchedule
public function ajaxSchedule($request, $response)
{
/*{{{*/
$allScheduleTables = Schedule::buildAllTables(array($this->space->host));
$response->allScheduleTables = $allScheduleTables[$this->space->host->primaryId];
}
示例3: showDetail
public function showDetail($request, $response)
{/*{{{*/
$this->initialize($request, $response);
$response->title =($this->doctor->hospitalfaculty->isNull()) ? $this->doctor->name."_好大夫在线" :
$this->doctor->name."_".$this->doctor->hospitalfaculty->hospital->commonName.$this->doctor->hospitalfaculty->name."_好大夫在线";
$response->topTitle = $this->doctor->name;
$response->thankLetterCount = $this->doctor->getCureThankLetterCount();
$response->processCount = $this->doctor->getCureExpCount();
$diseaseList = DoctorCommentClient::getInstance()->queryCommentDiseaseGroup($this->doctor->getPrimaryDoctor());
$response->VOTE_DISPLAY_LIMIT = self::VOTE_DISPLAY_LIMIT;
//好评疾病
$response->goodDiseaseList = DiseaseClient::getInstance()->getDiseaseDoctorList(array($this->doctor->primaryId), 50);
//患者投票
$response->diseaseDoctorList = DiseaseClient::getInstance()->getDiseaseDoctorList(array($this->doctor->primaryId));
//文章列表
if ($this->doctorSpaceIsOpened)
{
$this->loadMoreArticle($request, $response);
}
//最新回复
$this->getLatestFlow($request, $response);
//加号
$bookingCnt = 0;
if ($this->doctorSpaceIsOpened)
{
$res = BookingClient::getInstance()->getFinishOrderList4Space($this->space->id, 1,20);
$orders = $res['list'];
$bookingCnt = isset($res['pageInfo']['total']) ? $res['pageInfo']['total'] : 0;
$response->bookingOrder = array_shift($orders);
}
$response->bookingCnt = $bookingCnt;
//电话咨询订单
$telOrderCnt = 0;
if ($this->doctorSpaceIsOpened)
{
$telOwner = DAL::get()->find_by_relatedObject('telowner', $this->space->user);
$res = TelOrderClient::getInstance()->getList(TelOrder::SEARCH_FINISHED_CLOSE, 1, 1, $telOwner->id);
$telOrderCnt = $res['pageInfo']['total'];
$response->telOrder = array_shift($res['list']);
}
$response->telOrderCnt = $telOrderCnt;
$specialize = $this->doctor->specialize ? $this->doctor->specialize : "暂无医生擅长信息";
$specialize = str_replace("\n", '', $specialize);
$specialize = strip_tags(str_replace("\r", '', $specialize));
$response->specialize = $specialize;
$shortSpecialize = strlen($specialize) == 84 ? $specialize : XString::truncate($specialize, 84);
$shortSpecialize = str_replace("\n", '', $shortSpecialize);
$shortSpecialize = strip_tags(str_replace("\r", '', $shortSpecialize));
$response->shortSpecialize = $shortSpecialize;
$allScheduleTables = Schedule::buildAllTables(array($this->doctor));
$allScheduleTable = $allScheduleTables[$this->doctor->primaryId];
$shouldShowNoteDifferentMark = false;
if (false == $this->space->isNull())
{
$shouldShowNoteDifferentMark = $this->space->shouldShowNoteDifferentMark();
}
if('' != trim($allScheduleTable['Remark']))
{
$shouldShowNoteDifferentMark = true;
}
$response->shouldShowNoteDifferentMark = $shouldShowNoteDifferentMark;
$commentDoctor = $this->doctor->commentDoctor;
$response->commentDoctor = $commentDoctor;
$diseaseId = 0;
$key = md5('haodf2014'.$this->space->id.$diseaseId);
$data = $this->space->id.'_'.$diseaseId.'_'.$key;
$response->patientSigninKey = $data;
}/*}}}*/
示例4: online
/** 我的出诊信息 */
public function online($request, $response)
{
$allScheduleTables = Schedule::buildAllTables(array($this->_newSpace->host));
$allScheduleTable = $allScheduleTables[$this->_newSpace->host->primaryId];
$response->allScheduleTable = $allScheduleTable;
}
示例5: online
/** 出诊信息 */
public function online($request, $response)
{
/*{{{*/
$allScheduleTables = Schedule::buildAllTables(array($this->space->host));
$response->allScheduleTable = $allScheduleTables[$this->space->host->primaryId];
$response->subMenu = "online";
}