public function postSave(PropelPDO $con = null) { parent::postSave($con); if ($this->xslModified && $this->xsl && $this->getFeedId()) { KalturaLog::debug("loads syndication feed id [" . $this->getFeedId() . "]"); $syndicationFeed = syndicationFeedPeer::retrieveByPK($this->getFeedId()); KalturaLog::debug("syndication feed id [" . $syndicationFeed->getId() . "] syndication feed type [" . get_class($syndicationFeed) . "]"); if ($syndicationFeed && $syndicationFeed instanceof genericSyndicationFeed) { KalturaLog::log("Updating syndication feed xsl"); $syndicationFeed->setType(syndicationFeedType::KALTURA_XSLT); $syndicationFeed->incrementVersion(); $syndicationFeed->save(); $syncKey = $syndicationFeed->getSyncKey(genericSyndicationFeed::FILE_SYNC_SYNDICATION_FEED_XSLT); kFileSyncUtils::file_put_contents($syncKey, $this->xsl, false); $this->xslModified = false; } } }
public function postSave(PropelPDO $con = null) { parent::postSave($con); if ($this->xslModified && $this->xsl && $this->getFeedId()) { $podcastFeed = syndicationFeedPeer::retrieveByPK($this->getFeedId()); if ($podcastFeed && $podcastFeed instanceof genericSyndicationFeed) { $podcastFeed->setType(syndicationFeedType::KALTURA_XSLT); $podcastFeed->incrementVersion(); $podcastFeed->save(); $syncKey = $podcastFeed->getSyncKey(genericSyndicationFeed::FILE_SYNC_SYNDICATION_FEED_XSLT); kFileSyncUtils::file_put_contents($syncKey, $this->xsl, false); $this->xslModified = false; } } }