本文整理汇总了PHP中Location::getSuburb方法的典型用法代码示例。如果您正苦于以下问题:PHP Location::getSuburb方法的具体用法?PHP Location::getSuburb怎么用?PHP Location::getSuburb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Location
的用法示例。
在下文中一共展示了Location::getSuburb方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTitle
public function getTitle()
{
$title = parent::getTitle();
$title .= '<br /><span class="titlesecond">' . $this->getCat2();
$location = new Location($this->_posting->locId);
$suburb = $location->getSuburb();
if (!empty($suburb)) {
$title .= ' <span class="titleend">(' . $suburb . ')</span>';
}
return $title . '</span>';
}
示例2: getTitle
public function getTitle()
{
$title = parent::getTitle();
$title .= '<br /><span class="titlesecond">';
$other = $this->strAdd($this->getCat3(), $this->getCat2(), ' - ');
$location = new Location($this->_posting->locId);
$suburb = $location->getSuburb();
if (!empty($suburb)) {
$title .= $other . ' <span class="titleend">(' . $suburb . ')</span>';
}
//$title .= $this->strAdd( $other , $suburb, ' : ');
return $title;
}
示例3: getTitle
public function getTitle()
{
$title = $this->_pstCategory->address;
$location = new Location($this->_posting->locId);
$suburb = $location->getSuburb();
if (!empty($suburb)) {
$title .= ' <span class="titleend">(' . $suburb . ')</span>';
}
if ($this->_posting->cat2 == 630) {
$type = 'For Sale';
} else {
if ($this->_posting->cat2 == 638) {
$type = 'For Lease';
} else {
if ($this->_posting->cat2 == 645) {
$type = 'For Share';
}
}
}
$title .= '<br /><span class="titlesecond">' . $type;
$cat1Table = new Refcat1();
$title .= ' by ' . $cat1Table->getCatNameById($this->_posting->cat1) . ' - ' . $this->_posting->priceDisplay . ' - ' . ' Bed: ' . Tag::getUnitsAmount($this->_pstCategory->rooms) . ', Bath: ' . Tag::getUnitsAmount($this->_pstCategory->baths) . ', Cars: ' . Tag::getUnitsAmount($this->_pstCategory->parking) . "</span>";
return $title;
}
示例4: getTitle
public function getTitle()
{
$title = "";
$cat2 = "";
$cat3 = "";
$catTables = new Refcategory();
if (!empty($this->_posting->cat2)) {
$cat2 = $catTables->getCatNameById($this->_posting->cat2);
}
if (!empty($this->_posting->cat3)) {
$cat3 = $catTables->getCatNameById($this->_posting->cat3);
}
$title .= $this->_pstCategory->makeYear . ' ' . $cat2 . ' ' . $cat3;
$location = new Location($this->_posting->locId);
$suburb = $location->getSuburb();
$title .= '<br /><span class="titlesecond">';
$cat1Table = new Refcat1();
$title .= $cat1Table->getCatNameById($this->_posting->cat1) . ' - ' . $this->_posting->priceDisplay . '<span class="titleend"> (' . $suburb . ")</span>" . "</span>";
return $title;
}