本文整理汇总了PHP中Feature::__toString方法的典型用法代码示例。如果您正苦于以下问题:PHP Feature::__toString方法的具体用法?PHP Feature::__toString怎么用?PHP Feature::__toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Feature
的用法示例。
在下文中一共展示了Feature::__toString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __toString
public function __toString()
{
$parent_string = parent::__toString();
$output = array();
$output[] = $parent_string;
foreach ($this->features as $feature) {
$output[] = $feature->__toString();
}
return implode("\n", $output);
}
示例2: __toString
public function __toString()
{
$parent_string = parent::__toString();
$output = array();
$output[] = sprintf("<Placemark%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : "");
$output[] = $parent_string;
if (isset($this->geometry)) {
$output[] = $this->geometry->__toString();
}
$output[] = "</Placemark>";
return implode("\n", $output);
}
示例3: __toString
public function __toString()
{
$parent_string = parent::__toString();
$output = array();
$output[] = $parent_string;
if (isset($this->color)) {
$output[] = sprintf("<color>%s</color>", $this->color);
}
if (isset($this->drawOrder)) {
$output[] = sprintf("<drawOrder>%s</drawOrder>", $this->drawOrder);
}
if (isset($this->icon)) {
$output[] = $this->icon->__toString();
}
return implode("\n", $output);
}
示例4: __toString
public function __toString()
{
$parent_string = parent::__toString();
$output = array();
$output[] = sprintf("<NetworkLink%s>", isset($this->id) ? sprintf(" id=\"%s\"", $this->id) : "");
$output[] = $parent_string;
if (isset($this->refreshVisibility)) {
$output[] = sprintf("\t<refreshVisibility>%d<refreshVisibility>", $this->refreshVisibility);
}
if (isset($this->flyToView)) {
$output[] = sprintf("\t<flyToView>%d<flyToView>", $this->flyToView);
}
if (isset($this->link)) {
$output[] = $this->link->__toString();
}
$output[] = "</NetworkLink>";
return implode("\n", $output);
}