当前位置: 首页>>代码示例>>PHP>>正文


PHP Location::getSuburb方法代码示例

本文整理汇总了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>';
 }
开发者ID:xinghao,项目名称:shs,代码行数:11,代码来源:ActivitiesDetailTab.php

示例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;
 }
开发者ID:xinghao,项目名称:shs,代码行数:13,代码来源:HealthDetailTab.php

示例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 . ' -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . ' Bed: ' . Tag::getUnitsAmount($this->_pstCategory->rooms) . ', Bath: ' . Tag::getUnitsAmount($this->_pstCategory->baths) . ', Cars: ' . Tag::getUnitsAmount($this->_pstCategory->parking) . "</span>";
     return $title;
 }
开发者ID:xinghao,项目名称:shs,代码行数:24,代码来源:RealestateDetailTab.php

示例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;
 }
开发者ID:xinghao,项目名称:shs,代码行数:20,代码来源:CarsDetailTab.php


注:本文中的Location::getSuburb方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。