public function incLiveSegmentVersion($index) { $subType = self::FILE_SYNC_ASSET_SUB_TYPE_LIVE_PRIMARY; if ($index == MediaServerIndex::SECONDARY) { $subType = self::FILE_SYNC_ASSET_SUB_TYPE_LIVE_SECONDARY; } $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getLiveSegmentVersion($index), FileSyncObjectType::ASSET, $subType); $this->putInCustomData("liveSegmentVersion-{$index}", $newVersion); }
public function incrementIsmVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getIsmVersion(), FileSyncObjectType::ENTRY, self::FILE_SYNC_ENTRY_SUB_TYPE_ISM); $this->setIsmVersion($newVersion); return $newVersion; }
public function incrementVersion($subType = self::FILE_SYNC_UICONF_SUB_TYPE_CONFIG) { $version = $this->getVersion($subType); $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $version, FileSyncObjectType::UICONF, $subType); if ($subType == self::FILE_SYNC_UICONF_SUB_TYPE_CONFIG) { if (!$this->getConfFileVersion() && $this->getConfFileBySuffix()) { $this->setConfFileVersion($version); } if (!$this->getConfFileFeaturesVersion() && $this->getConfFileBySuffix(self::FILE_NAME_FEATURES)) { $this->setConfFileFeaturesVersion($version); } } $this->setVersion($newVersion, $subType); }
public function incLogFileVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getLogFileVersion(), FileSyncObjectType::ASSET, asset::FILE_SYNC_ASSET_SUB_TYPE_CONVERT_LOG); $this->putInCustomData("logFileVersion", $newVersion); }
public function incrementVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::FILE_ASSET, self::FILE_SYNC_ASSET); $this->setVersion($newVersion); }
public function incrementXsltVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getXsltVersion(), FileSyncObjectType::METADATA_PROFILE, self::FILE_SYNC_METADATA_XSLT); $this->setXsltVersion($newVersion); }
public function incrementVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::SYNDICATION_FEED, self::FILE_SYNC_SYNDICATION_FEED_XSLT); $this->setVersion($newVersion); }
public function incrementXslVersion() { $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::CONVERSION_PROFILE, self::FILE_SYNC_MRSS_XSL); $this->putInCustomData("xslVersion", $newVersion); }