code: 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);
  		}
  	}
docs: Update a particular RSS feed
  
  @param integer $intId