Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Update Feed.php #4904

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions library/Zend/Feed/Reader/Extension/Syndication/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Feed extends Extension\AbstractFeed
public function getUpdatePeriod()
{
$name = 'updatePeriod';
$period = $this->_getData($name);
$period = $this->getData($name);

if ($period === null) {
$this->data[$name] = 'daily';
Expand Down Expand Up @@ -52,7 +52,7 @@ public function getUpdatePeriod()
public function getUpdateFrequency()
{
$name = 'updateFrequency';
$freq = $this->_getData($name, 'number');
$freq = $this->getData($name, 'number');

if (!$freq || $freq < 1) {
$this->data[$name] = 1;
Expand All @@ -70,7 +70,7 @@ public function getUpdateFrequency()
public function getUpdateFrequencyAsTicks()
{
$name = 'updateFrequency';
$freq = $this->_getData($name, 'number');
$freq = $this->getData($name, 'number');

if (!$freq || $freq < 1) {
$this->data[$name] = 1;
Expand Down Expand Up @@ -107,7 +107,7 @@ public function getUpdateFrequencyAsTicks()
*/
public function getUpdateBase()
{
$updateBase = $this->_getData('updateBase');
$updateBase = $this->getData('updateBase');
$date = null;
if ($updateBase) {
$date = DateTime::createFromFormat(DateTime::W3C, $updateBase);
Expand All @@ -122,7 +122,7 @@ public function getUpdateBase()
* @param string $type
* @return mixed|null
*/
private function _getData($name, $type = 'string')
private function getData($name, $type = 'string')
{
if (array_key_exists($name, $this->data)) {
return $this->data[$name];
Expand Down