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


PHP Location::getLocationString方法代码示例

本文整理汇总了PHP中Location::getLocationString方法的典型用法代码示例。如果您正苦于以下问题:PHP Location::getLocationString方法的具体用法?PHP Location::getLocationString怎么用?PHP Location::getLocationString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Location的用法示例。


在下文中一共展示了Location::getLocationString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getTab1Content

 public function getTab1Content()
 {
     $contentArray = array();
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $categoryTable = new Refcategory();
     $contentArray[] = array('head' => 'Property Type:', 'value' => $categoryTable->getCatNameById($this->_posting->cat3), 'cssClass' => '');
     $contentArray[] = array('head' => 'Bedrooms:', 'value' => Tag::getUnitsAmount($this->_pstCategory->rooms), 'cssClass' => '');
     $contentArray[] = array('head' => 'Bathrooms:', 'value' => Tag::getUnitsAmount($this->_pstCategory->baths), 'cssClass' => '');
     $contentArray[] = array('head' => 'Parking:', 'value' => Tag::getUnitsAmount($this->_pstCategory->parking), 'cssClass' => '');
     if (!empty($this->_pstCategory->buildingArea)) {
         $contentArray[] = array('head' => 'Building Area:', 'value' => $this->_pstCategory->buildingArea . 'm&sup2', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->landArea)) {
         $contentArray[] = array('head' => 'Land Area:', 'value' => $this->_pstCategory->landArea . 'm&sup2', 'cssClass' => '');
     }
     $contentArray[] = array('head' => 'Property Age:', 'value' => Tag::getAges($this->_pstCategory->age), 'cssClass' => '');
     $contentArray[] = array('head' => 'Morning Sun Dir:', 'value' => $this->_pstCategory->sunDirection, 'cssClass' => '');
     $contentArray[] = array('head' => 'Views of:', 'value' => $this->_pstCategory->views, 'cssClass' => '');
     $contentArray[] = array('head' => 'Levels in Building:', 'value' => $this->_pstCategory->buildingLevel, 'cssClass' => '');
     $contentArray[] = array('head' => 'Property is on floor:', 'value' => $this->_pstCategory->level, 'cssClass' => '');
     if (!empty($this->_pstCategory->strataRate)) {
         $contentArray[] = array('head' => 'Strata Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->strataRate . ' per quarter', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->councilRate)) {
         $contentArray[] = array('head' => 'Council Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->councilRate . ' per quarter', 'cssClass' => '');
     }
     if (!empty($this->_pstCategory->waterRate)) {
         $contentArray[] = array('head' => 'Water Rate:', 'value' => $location->getCurrencySymbol() . $this->_pstCategory->waterRate . ' per quarter', 'cssClass' => '');
     }
     $contentArray[] = array('head' => 'Best Features:', 'value' => $this->_pstCategory->bestFeatures, 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
开发者ID:xinghao,项目名称:shs,代码行数:60,代码来源:RealestateDetailTab.php

示例2: getTitle

 public function getTitle()
 {
     $title = parent::getTitle();
     $cat2 = $this->getCat2();
     $location = new Location($this->_posting->locId);
     $secondLing = $this->strAdd($cat2, '<span class="titleend"> (' . $location->getLocationString() . ")</span>", '');
     if (!empty($secondLing)) {
         $secondLing = '<span class="titlesecond">' . $secondLing . '</span>';
     }
     return $this->strAdd($title, $secondLing, '<br />');
 }
开发者ID:xinghao,项目名称:shs,代码行数:11,代码来源:ListingsDetailTab.php

示例3: getTab1Content

 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Cuisine:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $contentArray[] = array('head' => 'Special Feature:', 'value' => $this->getCat1(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Address:', 'value' => $this->_pstCategory->address, 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Suburb:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Phone#:', 'value' => $this->_pstCategory->contactPhone, 'cssClass' => '');
     $contentArray[] = array('head' => 'Website:', 'value' => Tag::webSites($this->_pstCategory->website), 'cssClass' => '');
     $opendayTables = new Refopenday();
     $contentArray[] = array('head' => 'Open Days:', 'value' => $opendayTables->getOpenday($this->_pstCategory->openDays), 'cssClass' => '');
     $contentArray[] = array('head' => 'Price:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceInfo), 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => $this->_pstCategory->shortDescription, 'value' => 'dummy', 'cssClass' => 'black');
     $contentArray[] = array('head' => $this->_pstCategory->about, 'value' => 'dummy', 'cssClass' => 'black');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
开发者ID:xinghao,项目名称:shs,代码行数:46,代码来源:RestaurantsDetailTab.php

示例4: getTab1Content

 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Employer:', 'value' => $this->_pstCategory->employerCompany . ', ' . $this->getCat1(), 'cssClass' => 'bold');
     $contentArray[] = array('head' => '', 'value' => 'dummy', 'cssClass' => '');
     $contentArray[] = array('head' => 'Job Type:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Salary Info:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceInfo), 'cssClass' => '');
     $contentArray[] = array('head' => 'Short Description:', 'value' => $this->_pstCategory->shortDescription, 'cssClass' => '');
     $contentArray[] = array('head' => 'Required Skills:', 'value' => $this->_pstCategory->skills, 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
开发者ID:xinghao,项目名称:shs,代码行数:40,代码来源:JobDetailTab.php

示例5: getTab1Content

 public function getTab1Content()
 {
     $contentArray = array();
     $contentArray[] = array('head' => 'Category:', 'value' => $this->getCatsString(false), 'cssClass' => '');
     $contentArray[] = array('head' => 'Price:', 'value' => $this->strAdd($this->_posting->priceDisplay, $this->_pstCategory->priceDescription), 'cssClass' => '');
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Suburb:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Phone#:', 'value' => $this->_pstCategory->contactPhone, 'cssClass' => '');
     $contentArray[] = array('head' => $this->_pstCategory->shortDescription, 'value' => 'dummy', 'cssClass' => 'black');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
开发者ID:xinghao,项目名称:shs,代码行数:38,代码来源:ClassifiedsDetailTab.php

示例6: getTab1Content

 public function getTab1Content()
 {
     $contentArray = array();
     $location = new Location($this->_posting->locId);
     $contentArray[] = array('head' => 'Location:', 'value' => $location->getLocationString(), 'cssClass' => '');
     $contentArray[] = array('head' => 'Vehicle:', 'value' => $this->strAdds(array($this->getCat2(), $this->getCat3(), $this->_pstCategory->makeYear)), 'cssClass' => '');
     $contentArray[] = array('head' => 'Kilometers:', 'value' => $this->addEnding(number_format($this->_pstCategory->km), "Km's"), 'cssClass' => '');
     $contentArray[] = array('head' => '# Plate:', 'value' => $this->_pstCategory->numberPlate, 'cssClass' => '');
     $contentArray[] = array('head' => 'Registration Expire:', 'value' => Tag::getHtmlDateTime($this->_pstCategory->registrationExpire), 'cssClass' => '');
     $contentArray[] = array('head' => 'Body:', 'value' => $this->_pstCategory->seats . " seats , " . $this->_pstCategory->bodyType . ' , ' . $this->_pstCategory->drive, 'cssClass' => '');
     $engine = $this->addEnding($this->_pstCategory->engin, 'Litres');
     $power = '';
     if (!empty($this->_pstCategory->power)) {
         if (stristr($this->_pstCategory->power, 'KW')) {
             $power = $this->_pstCategory->power;
         } else {
             $power = $this->_pstCategory->power . ' Kw';
         }
     }
     $contentArray[] = array('head' => 'Transmission:', 'value' => $this->strAdds(array($this->_pstCategory->transmission, $engine, $power)), 'cssClass' => '');
     $contentArray[] = array('head' => 'Fuel:', 'value' => $this->_pstCategory->fuel, 'cssClass' => '');
     $contentArray[] = array('head' => 'Fuel Consumption:', 'value' => $this->addEnding($this->_pstCategory->fuelConsumption, 'L/100Km'), 'cssClass' => '');
     $contentArray[] = array('head' => 'CO2 Rating:', 'value' => $this->addEnding($this->_pstCategory->co2 == "Select" ? "" : $this->_pstCategory->co2, 'g/Km'), 'cssClass' => '');
     $contentArray[] = array('head' => 'Body colour:', 'value' => $this->_pstCategory->bodyColour, 'cssClass' => '');
     $contentArray[] = array('head' => 'Interior colour:', 'value' => $this->_pstCategory->interiorColour, 'cssClass' => '');
     $contentArray[] = array('head' => '# of owners:', 'value' => $this->_pstCategory->owners, 'cssClass' => '');
     $contentArray[] = array('head' => 'Faults:', 'value' => $this->_pstCategory->faults, 'cssClass' => '');
     $contentArray[] = array('head' => '', 'value' => $this->_pstCategory->shortDescription, 'cssClass' => '');
     $contentArray[] = array('head' => 'Entertainmant:', 'value' => $this->getFeatures($this->_pstCategory->featuresEntertainmant, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Safety:', 'value' => $this->getFeatures($this->_pstCategory->featuresSafety, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Interior:', 'value' => $this->getFeatures($this->_pstCategory->featuresInterior, $this->_posting->typeID, 2), 'cssClass' => '');
     $contentArray[] = array('head' => 'Exterior:', 'value' => $this->getFeatures($this->_pstCategory->featuresExterior, $this->_posting->typeID, 2), 'cssClass' => '');
     $this->printTable($contentArray, true);
     /*
     echo '<table>';
     
     echo '<tr>';
     echo '<th> </th>';
     echo '<td>' . $this->getCatsString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Location: </th>';
     
     
     echo '<td>' . $location->getLocationString() . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Salary Info: </th>';
     echo '<td>' . $this->_pstCategory->priceInfo . '</td>';
     echo '</tr>';
     
     echo '<tr>';
     echo '<th>Requried Skills: </th>';
     echo '<td>' . $this->_pstCategory->skills . '</td>';
     echo '</tr>';
     
     echo '</table>';
     */
 }
开发者ID:xinghao,项目名称:shs,代码行数:61,代码来源:CarsDetailTab.php


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