public function deleteStamp(Request $request, $bas_id)
    {
        $success = false;

        $collection = \collection::getByBaseId($this->app, $bas_id);

        try {
            $this->app->getApplicationBox()->write_collection_pic(
                $this->app['media-alchemyst'],
                $this->app['filesystem'],
                $collection,
                null,
                \collection::PIC_STAMP
            );
            $success = true;
        } catch (\Exception $e) {

        }

        if ('json' === $request->getRequestFormat()) {
            return $this->app->json([
                'success' => $success,
                'msg'     => $success ? $this->app->trans('Successful removal') : $this->app->trans('An error occured'),
                'bas_id'  => $collection->get_base_id()
            ]);
        }

        return $this->app->redirectPath('admin_display_collection', [
            'bas_id'  => $collection->get_base_id(),
            'success' => (int) $success,
        ]);
    }
public function deleteStamp(Request $request, $bas_id)
    {
        $success = false;

        $collection = \collection::getByBaseId($this->app, $bas_id);

        try {
            $this->app->getApplicationBox()->write_collection_pic(
                $this->app['media-alchemyst'],
                $this->app['filesystem'],
                $collection,
                null,
                \collection::PIC_STAMP
            );
            $success = true;
        } catch (\Exception $e) {

        }

        if ('json' === $request->getRequestFormat()) {
            return $this->app->json([
                'success' => $success,
                'msg'     => $success ? $this->app->trans('Successful removal') : $this->app->trans('An error occured'),
                'bas_id'  => $collection->get_base_id()
            ]);
        }

        return $this->app->redirectPath('admin_display_collection', [
            'bas_id'  => $collection->get_base_id(),
            'success' => (int) $success,
        ]);
    }
public function deleteStamp ( Request $ request , $ bas_id ) { $ success = false ; $ collection = \ collection :: getByBaseId ( $ this -> app , $ bas_id ) ; try { $ this -> app -> getApplicationBox ( ) -> write_collection_pic ( $ this -> app [ 'media-alchemyst' ] , $ this -> app [ 'filesystem' ] , $ collection , null , \ collection :: PIC_STAMP ) ; $ success = true ; } catch ( \ Exception $ e ) { } if ( 'json' === $ request -> getRequestFormat ( ) ) { return $ this -> app -> json ( [ 'success' => $ success , 'msg' => $ success ? $ this -> app -> trans ( 'Successful removal' ) : $ this -> app -> trans ( 'An error occured' ) , 'bas_id' => $ collection -> get_base_id ( ) ] ) ; } return $ this -> app -> redirectPath ( 'admin_display_collection' , [ 'bas_id' => $ collection -> get_base_id ( ) , 'success' => ( int ) $ success , ] ) ; }
Delete the collection stamp

@param  Request                       $request The current request
@param  integer                       $bas_id  The collection base_id
@return Response
Delete the collection stamp