本文整理匯總了PHP中Zone::updatingVersion方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zone::updatingVersion方法的具體用法?PHP Zone::updatingVersion怎麽用?PHP Zone::updatingVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zone
的用法示例。
在下文中一共展示了Zone::updatingVersion方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: updateZone
public static function updateZone($description, $sourceId, $zoneId, $versionId, $zoneAuthenticationType)
{
//$db = ZitDBAdapter::getDBAdapter();
$db = Zend_Registry::get('my_db');
if (Zone::updatingVersion($zoneId, $versionId)) {
Zone::deleteAllPermissions_subscriptions_provisions_requests_responds($zoneId);
Zone::unregisterAllAgents($zoneId);
}
$data = array(DBConvertor::convertCase('zone_desc') => $description, DBConvertor::convertCase('source_id') => $sourceId, DBConvertor::convertCase('ZONE_AUTHENTICATION_TYPE_ID') => $zoneAuthenticationType, DBConvertor::convertCase('update_timestamp') => new Zend_Db_Expr(DBConvertor::convertCurrentTime()), DBConvertor::convertCase('version_id') => $versionId);
$n = $db->update(DBConvertor::convertCase('zones'), $data, 'zone_id = ' . $zoneId);
$frontendOptions = array('lifetime' => Null);
$backendOptions = array('cache_dir' => CACHE);
$cache = Zend_Cache::factory('Output', 'File', $frontendOptions, $backendOptions);
$cacheID = 'DataObject1Navigation';
$cache->clean(Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG, array($cacheID));
}