public function serverResponse()
    {
        if(!empty($_GET['imageQuery']))
        {
            $picture  = $this->loadPicture($_GET['imageQuery']);
            $savePath = $this->getPath($picture);

            $picture->save($savePath);

            if($savePath !== $this->getPath($picture))
            {
                throw new Exception('Picture effect is changing its own arguments on effect apply');
            }

            $picture->output();
        }

        if(!empty($_POST['regenerate']))
        {
            $picture = $this->loadPicture($_POST['regenerate']);
            $picture->save($this->getPath($picture));
        }
    }
public function serverResponse()
    {
        if(!empty($_GET['imageQuery']))
        {
            $picture  = $this->loadPicture($_GET['imageQuery']);
            $savePath = $this->getPath($picture);

            $picture->save($savePath);

            if($savePath !== $this->getPath($picture))
            {
                throw new Exception('Picture effect is changing its own arguments on effect apply');
            }

            $picture->output();
        }

        if(!empty($_POST['regenerate']))
        {
            $picture = $this->loadPicture($_POST['regenerate']);
            $picture->save($this->getPath($picture));
        }
    }
public function serverResponse ( ) { if ( ! empty ( $ _GET [ 'imageQuery' ] ) ) { $ picture = $ this -> loadPicture ( $ _GET [ 'imageQuery' ] ) ; $ savePath = $ this -> getPath ( $ picture ) ; $ picture -> save ( $ savePath ) ; if ( $ savePath !== $ this -> getPath ( $ picture ) ) { throw new Exception ( 'Picture effect is changing its own arguments on effect apply' ) ; } $ picture -> output ( ) ; } if ( ! empty ( $ _POST [ 'regenerate' ] ) ) { $ picture = $ this -> loadPicture ( $ _POST [ 'regenerate' ] ) ; $ picture -> save ( $ this -> getPath ( $ picture ) ) ; } }
Execute server generator backend.
@return void
@throws Exception
Execute server generator backend .