Exemplo n.º 1
0
 public function onSiteDeleted($idSite)
 {
     // we do not delete logs here on purpose (you can run these queries on the log_ tables to delete all data)
     Cache::deleteCacheWebsiteAttributes($idSite);
     $archiveInvalidator = new ArchiveInvalidator();
     $archiveInvalidator->forgetRememberedArchivedReportsToInvalidateForSite($idSite);
     $measurableStorage = new Storage(Db::get(), $idSite);
     $measurableStorage->deleteAllValues();
 }
Exemplo n.º 2
0
 private function saveMultipleValues()
 {
     $this->storage->setValue($this->setting, 'myRandomVal');
     $this->storage->setValue($this->createSetting('test2'), 5);
     $this->storage->setValue($this->createSetting('test3'), array(1, 2, '4'));
     $this->storage->save();
 }