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


PHP Schedule::buildAllTables方法代碼示例

本文整理匯總了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;
	}/*}}}*/
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:7,代碼來源:indexcontroller.php

示例2: ajaxSchedule

 public function ajaxSchedule($request, $response)
 {
     /*{{{*/
     $allScheduleTables = Schedule::buildAllTables(array($this->space->host));
     $response->allScheduleTables = $allScheduleTables[$this->space->host->primaryId];
 }
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:6,代碼來源:indexcontroller.php

示例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;
    }/*}}}*/
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:78,代碼來源:doctorcontroller.php

示例4: online

	/** 我的出診信息 */
	public function online($request, $response)
	{
		$allScheduleTables = Schedule::buildAllTables(array($this->_newSpace->host));
		$allScheduleTable = $allScheduleTables[$this->_newSpace->host->primaryId];
		$response->allScheduleTable = $allScheduleTable;
	}
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:7,代碼來源:admindoctorcontroller.php

示例5: online

 /** 出診信息 */
 public function online($request, $response)
 {
     /*{{{*/
     $allScheduleTables = Schedule::buildAllTables(array($this->space->host));
     $response->allScheduleTable = $allScheduleTables[$this->space->host->primaryId];
     $response->subMenu = "online";
 }
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:8,代碼來源:admindoctorcontroller.php


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