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


PHP Family::get方法代碼示例

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


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

示例1: Results

 public function Results()
 {
     $list = Family::get();
     $blockNo = Convert::raw2sql($this->request->getVar('BlockNo'));
     $unitNo = Convert::raw2sql($this->request->getVar('UnitNo'));
     $parishID = Convert::raw2sql($this->request->getVar('ParishID'));
     $pincode = Convert::raw2sql($this->request->getVar('Pincode'));
     $isPanchayat = Convert::raw2sql($this->request->getVar('IsPanchayat'));
     $isMunicipality = Convert::raw2sql($this->request->getVar('IsMunicipality'));
     $isCorporation = Convert::raw2sql($this->request->getVar('IsCorporation'));
     if ($parishID) {
         $list = $list->filter(array('ParishID' => $parishID));
     }
     if ($blockNo) {
         $list = $list->filter(array('BlockNo' => $blockNo));
     }
     if ($unitNo) {
         $list = $list->filter(array('UnitNo' => $unitNo));
     }
     if ($pincode) {
         $list = $list->filter(array('Pincode' => $pincode));
     }
     if ($isPanchayat) {
         $list = $list->filter(array('IsPanchayat' => $isPanchayat));
     }
     if ($isMunicipality) {
         $list = $list->filter(array('IsMunicipality' => $isMunicipality));
     }
     if ($isCorporation) {
         $list = $list->filter(array('IsCorporation' => $isCorporation));
     }
     //$list = $list->leftJoin('Contact', "\"Contact\".\"FamilyID\" = \"Family\".\"ID\"");
     //Debug::show($list);
     return $list;
 }
開發者ID:thomaspaulson,項目名稱:myparish,代碼行數:35,代碼來源:FamilyController.php

示例2: Results

 public function Results()
 {
     $list = Family::get()->leftJoin('House', '"Family"."ID" = "House"."FamilyID"');
     $status = Convert::raw2sql($this->request->getVar('Status'));
     $holdsRationCard = Convert::raw2sql($this->request->getVar('HoldsRationCard'));
     $cardType = Convert::raw2sql($this->request->getVar('CardType'));
     $houseType = Convert::raw2sql($this->request->getVar('Type'));
     $parishID = Convert::raw2sql($this->request->getVar('ParishID'));
     if ($parishID) {
         $list = $list->filter(array('ParishID' => $parishID));
     }
     if ($status) {
         $list = $list->filter(array('House.Status' => $status));
     }
     if ($holdsRationCard != '') {
         $list = $list->filter(array('House.HoldsRationCard' => $holdsRationCard));
     }
     if ($holdsRationCard && $cardType) {
         $list = $list->filter(array('House.CardType' => $cardType));
     }
     if ($houseType) {
         $list = $list->filter(array('House.Type' => $houseType));
     }
     //$list = $list->leftJoin('Contact', "\"Contact\".\"FamilyID\" = \"Family\".\"ID\"");
     //Debug::show($list);
     return $list;
 }
開發者ID:thomaspaulson,項目名稱:myparish,代碼行數:27,代碼來源:HouseController.php

示例3: Results

 public function Results()
 {
     $list = Family::get()->leftJoin('Business', '"Family"."ID" = "Business"."FamilyID"');
     $agricultureType = Convert::raw2sql($this->request->getVar('Type'));
     $parishID = Convert::raw2sql($this->request->getVar('ParishID'));
     if ($parishID) {
         $list = $list->filter(array('ParishID' => $parishID));
     }
     if ($agricultureType) {
         $list = $list->filter(array('Business.Type' => $agricultureType));
     }
     //$list = $list->leftJoin('Contact', "\"Contact\".\"FamilyID\" = \"Family\".\"ID\"");
     //Debug::show($list);
     return $list;
 }
開發者ID:thomaspaulson,項目名稱:myparish,代碼行數:15,代碼來源:BusinessController.php

示例4: Results

 public function Results()
 {
     $list = Family::get()->leftJoin('ShiftedFrom', '"Family"."ID" = "ShiftedFrom"."FamilyID"');
     $status = Convert::raw2sql($this->request->getVar('Status'));
     $area = Convert::raw2sql($this->request->getVar('Area'));
     $parishID = Convert::raw2sql($this->request->getVar('ParishID'));
     if ($parishID) {
         $list = $list->filter(array('ParishID' => $parishID));
     }
     if ($status != '') {
         $list = $list->filter(array('ShiftedFrom.Status' => $status));
     }
     //$list = $list->leftJoin('Contact', "\"Contact\".\"FamilyID\" = \"Family\".\"ID\"");
     //Debug::show($list);
     return $list;
 }
開發者ID:thomaspaulson,項目名稱:myparish,代碼行數:16,代碼來源:ShiftedFromController.php

示例5: Results

 public function Results()
 {
     $list = Family::get()->leftJoin('Land', '"Family"."ID" = "Land"."FamilyID"');
     $holdsLand = Convert::raw2sql($this->request->getVar('HoldsLand'));
     $area = Convert::raw2sql($this->request->getVar('Area'));
     $parishID = Convert::raw2sql($this->request->getVar('ParishID'));
     if ($parishID) {
         $list = $list->filter(array('ParishID' => $parishID));
     }
     if ($holdsLand != '') {
         $list = $list->filter(array('Land.HoldsLand' => $holdsLand));
     }
     if ($holdsLand && $area) {
         $list = $list->filter(array('Land.Area' => $area));
     }
     return $list;
 }
開發者ID:thomaspaulson,項目名稱:myparish,代碼行數:17,代碼來源:LandController.php


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