diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-12 16:48:45 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-13 12:00:23 +0200 |
commit | 42bf466fa1c64fb6c37f0521fa27ec1b27943e35 (patch) | |
tree | 1c23c9513c197d5e07ed492efe82e0ce8b182d3e /apps/files_sharing/controller/adminsettingscontroller.php | |
parent | 7e8784c075b5e56abf44d0eb0c2e357be8342ca5 (diff) | |
download | nextcloud-server-42bf466fa1c64fb6c37f0521fa27ec1b27943e35.tar.gz nextcloud-server-42bf466fa1c64fb6c37f0521fa27ec1b27943e35.zip |
move mail template editor from core to standalone templateeditor repo
Diffstat (limited to 'apps/files_sharing/controller/adminsettingscontroller.php')
-rw-r--r-- | apps/files_sharing/controller/adminsettingscontroller.php | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/apps/files_sharing/controller/adminsettingscontroller.php b/apps/files_sharing/controller/adminsettingscontroller.php deleted file mode 100644 index 5192b6239e4..00000000000 --- a/apps/files_sharing/controller/adminsettingscontroller.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php - -namespace OCA\Files_Sharing\Controller; - -use \OCP\AppFramework\ApiController; -use \OCP\IRequest; -use \OCP\AppFramework\Http\JSONResponse; - -class AdminSettingsController extends ApiController { - - public function __construct($appName, IRequest $request) { - parent::__construct($appName, $request); - } - - /** - * @param string $theme - * @param string $template - * @return \OCA\Files_Sharing\Http\MailTemplateResponse - */ - public function renderRaw( $theme, $template ) { - try { - $template = new \OCA\Files_Sharing\MailTemplate( $theme, $template ); - return $template->getResponse(); - } catch (\Exception $ex) { - return new JSONResponse(array('message' => $ex->getMessage()), $ex->getCode()); - } - } - - /** - * @param string $theme - * @param string $template - * @param string $content - * @return JSONResponse - */ - public function update( $theme, $template, $content ) { - try { - $template = new \OCA\Files_Sharing\MailTemplate( $theme, $template ); - $template->setContent( $content ); - return new JSONResponse(); - } catch (\Exception $ex) { - return new JSONResponse(array('message' => $ex->getMessage()), $ex->getCode()); - } - } - - /** - * @param string $theme - * @param string $template - * @return JSONResponse - */ - public function reset( $theme, $template ) { - try { - $template = new \OCA\Files_Sharing\MailTemplate( $theme, $template ); - $template->reset(); - return new JSONResponse(); - } catch (\Exception $ex) { - return new JSONResponse(array('message' => $ex->getMessage()), $ex->getCode()); - } - } - -} |