public function FeedsDateTimeElement::__toString in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsParser.inc \FeedsDateTimeElement::__toString()
Implements toString magic php method.
Overrides FeedsElement::__toString
File
- plugins/
FeedsParser.inc, line 313
Class
- FeedsDateTimeElement
- Defines a date element of a parsed result (including ranges, repeat).
Code
public function __toString() {
$val = $this
->getValue();
if ($val) {
return $val
->format('U');
}
return '';
}