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


PHP Property::getProperties方法代碼示例

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


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

示例1: array

    $query = "DELETE FROM subcontractors_assign WHERE property_id = " . $_GET['id'];
    $reports_obj->customExecuteQuery($query);
    $query = "DELETE FROM properties WHERE id = " . $_GET['id'];
    $reports_obj->customExecuteQuery($query);
    $delete_success = true;
}
//$propertyObj->searchProperty($search="Arnold");
?>
	
	<?php 
$listProperties = array();
if ($propertyObj) {
    if ($_SESSION['user_type'] == 5) {
        $listProperties = $propertyObj->getPropertiesSubContractors(false);
    } else {
        $listProperties = $propertyObj->getProperties(false);
    }
}
$propertyArray = $user_properties_obj->getAll("WHERE user_id = " . $_SESSION["user_id"]);
if (count($propertyArray) > 0) {
    $propertyIdsArray = array();
    for ($i = 0; $i < count($propertyArray); $i++) {
        $propertyIdsArray[] = $propertyArray[$i]["property_id"];
    }
    $listPropertiesContainer = array();
    for ($i = 0; $i < count($listProperties); $i++) {
        if (in_array($listProperties[$i]["id"], $propertyIdsArray)) {
            $listPropertiesContainer[] = $listProperties[$i];
        }
    }
    $listProperties = $listPropertiesContainer;
開發者ID:erickigotho,項目名稱:Paxis,代碼行數:31,代碼來源:properties.php

示例2: propertyListAction

 public function propertyListAction()
 {
     global $mySession;
     $db = new Db();
     $this->_helper->layout()->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     $propertyModel = new Property();
     $responseData['output'] = 'false';
     if ($this->getRequest()->isPost()) {
         $post = $this->getRequest()->getPost();
         $filterArr = array();
         $filterArr['property_type'] = $post['accomodation_type'];
         $filterArr['country_id'] = $post['country_id'];
         $filterArr['state_id'] = $post['state_id'];
         $filterArr['city_id'] = $post['city_id'];
         $filterArr['sub_area_id'] = $post['sub_area'];
         $filterArr['local_area_id'] = $post['local_area'];
         $filterArr['zipcode'] = $post['zipcode'];
         $filterArr['xml_subscriber_id'] = $post['supplier'];
         $filterArr['bedrooms'] = $post['no_of_bedroom'];
         $propertyList = $propertyModel->getProperties($filterArr);
         $responseData['data'] = $propertyList;
         $responseData['output'] = true;
     }
     $this->_helper->json($responseData, true);
 }
開發者ID:ankuradhey,項目名稱:dealtrip,代碼行數:26,代碼來源:UpdaterController.php


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