本文整理汇总了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;
示例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);
}