public function FeedsElement::__toString in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsParser.inc \FeedsElement::__toString()
- 7 plugins/FeedsParser.inc \FeedsElement::__toString()
Magic method __toString() for printing and string conversion of this object.
Return value
A string representation of this element.
File
- plugins/
FeedsParser.inc, line 229 - Contains FeedsParser and related classes.
Class
- FeedsElement
- Defines an element of a parsed result. Such an element can be a simple type, a complex type (derived from FeedsElement) or an array of either.
Code
public function __toString() {
if (is_array($this->value)) {
return 'Array';
}
if (is_object($this->value)) {
return 'Object';
}
return (string) $this
->getValue();
}