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