当前位置: 首页>>代码示例>>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;未经允许,请勿转载。