本文整理汇总了PHP中kFileSyncUtils::calcObjectNewVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP kFileSyncUtils::calcObjectNewVersion方法的具体用法?PHP kFileSyncUtils::calcObjectNewVersion怎么用?PHP kFileSyncUtils::calcObjectNewVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kFileSyncUtils
的用法示例。
在下文中一共展示了kFileSyncUtils::calcObjectNewVersion方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: incLiveSegmentVersion
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);
}
示例2: incrementIsmVersion
public function incrementIsmVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getIsmVersion(), FileSyncObjectType::ENTRY, self::FILE_SYNC_ENTRY_SUB_TYPE_ISM);
$this->setIsmVersion($newVersion);
return $newVersion;
}
示例3: incrementVersion
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);
}
示例4: incLogFileVersion
public function incLogFileVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getLogFileVersion(), FileSyncObjectType::ASSET, asset::FILE_SYNC_ASSET_SUB_TYPE_CONVERT_LOG);
$this->putInCustomData("logFileVersion", $newVersion);
}
示例5: incrementVersion
public function incrementVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::FILE_ASSET, self::FILE_SYNC_ASSET);
$this->setVersion($newVersion);
}
示例6: incrementXsltVersion
public function incrementXsltVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getXsltVersion(), FileSyncObjectType::METADATA_PROFILE, self::FILE_SYNC_METADATA_XSLT);
$this->setXsltVersion($newVersion);
}
示例7: incrementVersion
public function incrementVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::SYNDICATION_FEED, self::FILE_SYNC_SYNDICATION_FEED_XSLT);
$this->setVersion($newVersion);
}
示例8: incrementXslVersion
public function incrementXslVersion()
{
$newVersion = kFileSyncUtils::calcObjectNewVersion($this->getId(), $this->getVersion(), FileSyncObjectType::CONVERSION_PROFILE, self::FILE_SYNC_MRSS_XSL);
$this->putInCustomData("xslVersion", $newVersion);
}