*/ GalleryCoreApi::requireOnce('modules/watermark/classes/WatermarkHelper.class'); /** * @package Watermark * @subpackage UserInterface */ class UserWatermarkEditController extends GalleryController { /** * @see GalleryController::handleRequest */ function handleRequest($form) { list ($ret, $results) = WatermarkHelper::handleEditRequest($form, 'core.UserAdmin', 'watermark.UserWatermarks', 'watermark.UserWatermarkEdit'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } return array(null, $results); } } /** * @package Watermark * @subpackage UserInterface */ class UserWatermarkEditView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { $ret = WatermarkHelper::loadEditTemplate($template, $form, 'UserWatermarkEdit'); if ($ret) { return array($ret->wrap(__FILE__, __LINE__), null); } return array(null, array('body' => 'modules/watermark/templates/UserWatermarkEdit.tpl')); } } ?>