You are here

public function Feed::getUpdateFrequency in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php \Zend\Feed\Reader\Extension\Syndication\Feed::getUpdateFrequency()

Get update frequency

Return value

int

File

vendor/zendframework/zend-feed/src/Reader/Extension/Syndication/Feed.php, line 52

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Syndication

Code

public function getUpdateFrequency() {
  $name = 'updateFrequency';
  $freq = $this
    ->getData($name, 'number');
  if (!$freq || $freq < 1) {
    $this->data[$name] = 1;
    return 1;
  }
  return $freq;
}