public function handleDeleteImages(string $json): void
	{
		if ($this->request->isAjax()) {
			$data = Json::decode($json);

			$result = $this->getStorage()->delete($data);
			foreach ($result as $row) {
				$this->imageStorage->delete($row);
			}

			$this->redrawControl('gallery');
		} else {
			throw new AbortException;
		}
	}
public function handleDeleteImages(string $json): void
	{
		if ($this->request->isAjax()) {
			$data = Json::decode($json);

			$result = $this->getStorage()->delete($data);
			foreach ($result as $row) {
				$this->imageStorage->delete($row);
			}

			$this->redrawControl('gallery');
		} else {
			throw new AbortException;
		}
	}
public function handleDeleteImages ( string $ json ) : void { if ( $ this -> request -> isAjax ( ) ) { $ data = Json :: decode ( $ json ) ; $ result = $ this -> getStorage ( ) -> delete ( $ data ) ; foreach ( $ result as $ row ) { $ this -> imageStorage -> delete ( $ row ) ; } $ this -> redrawControl ( 'gallery' ) ; } else { throw new AbortException ; } }
Smaze vybrane obrazky
@param string $json
@secured
@throws \Nette\Utils\JsonException
@throws AbortException
Smaze vybrane obrazky