Exemple #1
0
 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);
 }
Exemple #2
0
 public function incrementIsmVersion()
 {
     $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getIsmVersion(), FileSyncObjectType::ENTRY, self::FILE_SYNC_ENTRY_SUB_TYPE_ISM);
     $this->setIsmVersion($newVersion);
     return $newVersion;
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public function incLogFileVersion()
 {
     $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getLogFileVersion(), FileSyncObjectType::ASSET, asset::FILE_SYNC_ASSET_SUB_TYPE_CONVERT_LOG);
     $this->putInCustomData("logFileVersion", $newVersion);
 }
Exemple #5
0
 public function incrementVersion()
 {
     $newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::FILE_ASSET, self::FILE_SYNC_ASSET);
     $this->setVersion($newVersion);
 }
Exemple #6
0
 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);
 }