Back to RssParser class

Method handleCloud

protected void
handleCloud
(\Joomla\CMS\Feed\Feed $feed, \SimpleXMLElement $el)
Method to handle the `<cloud>` element for the feed.
Parameters
  • \Joomla\CMS\Feed\Feed $feed The Feed object being built from the parsed feed.
  • \SimpleXMLElement $el The current XML element object to handle.
Returns
  • void
Since
  • 3.1.4
Class: RssParser
Project: Joomla

Method handleCloud - Source code

/**
 * Method to handle the `<cloud>` element for the feed.
 *
 * @param   Feed               $feed  The Feed object being built from the parsed feed.
 * @param   \SimpleXMLElement  $el    The current XML element object to handle.
 *
 * @return  void
 *
 * @since   3.1.4
 */
protected function handleCloud(Feed $feed, \SimpleXMLElement $el)
{
    $cloud = new \stdClass();
    $cloud->domain = (string) $el['domain'];
    $cloud->port = (string) $el['port'];
    $cloud->path = (string) $el['path'];
    $cloud->protocol = (string) $el['protocol'];
    $cloud->registerProcedure = (string) $el['registerProcedure'];
    $feed->cloud = $cloud;
}