Beispiel #1
0
 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));
 }