public function generateFeed($intId)
	{
		$objCalendar = CalendarFeedModel::findByPk($intId);

		if ($objCalendar === null)
		{
			return;
		}

		$objCalendar->feedName = $objCalendar->alias ?: 'calendar' . $objCalendar->id;

		// Delete XML file
		if (Input::get('act') == 'delete')
		{
			$this->import(Files::class, 'Files');
			$this->Files->delete('web/share/' . $objCalendar->feedName . '.xml');
		}

		// Update XML file
		else
		{
			$this->generateFiles($objCalendar->row());
			$this->log('Generated calendar feed "' . $objCalendar->feedName . '.xml"', __METHOD__, TL_CRON);
		}
	}
public function generateFeed($intId)
	{
		$objCalendar = CalendarFeedModel::findByPk($intId);

		if ($objCalendar === null)
		{
			return;
		}

		$objCalendar->feedName = $objCalendar->alias ?: 'calendar' . $objCalendar->id;

		
		if (Input::get('act') == 'delete')
		{
			$this->import(Files::class, 'Files');
			$this->Files->delete('web/share/' . $objCalendar->feedName . '.xml');
		}

		
		else
		{
			$this->generateFiles($objCalendar->row());
			$this->log('Generated calendar feed "' . $objCalendar->feedName . '.xml"', __METHOD__, TL_CRON);
		}
	}
public function generateFeed ( $ intId ) { $ objCalendar = CalendarFeedModel :: findByPk ( $ intId ) ; if ( $ objCalendar === null ) { return ; } $ objCalendar -> feedName = $ objCalendar -> alias ? : 'calendar' . $ objCalendar -> id ; // Delete XML file if ( Input :: get ( 'act' ) == 'delete' ) { $ this -> import ( Files :: class , 'Files' ) ; $ this -> Files -> delete ( 'web/share/' . $ objCalendar -> feedName . '.xml' ) ; } // Update XML file else { $ this -> generateFiles ( $ objCalendar -> row ( ) ) ; $ this -> log ( 'Generated calendar feed "' . $ objCalendar -> feedName . '.xml"' , __METHOD__ , TL_CRON ) ; } }
Update a particular RSS feed

@param integer $intId
Update a particular RSS feed