setAutoCommit(false); try { $request = $this->getContext()->getRequest(); $helper = new PropelHelper($this->getContext(), $parameters); $mark = new WaterMarkPosition(); $helper->watchForVariables($mark); $mark->save(); $con->commit(); return 'Success'; } catch(PropelException $e) { $request->setError('water_mark_position_name', $e->getMessage()); } $con->rollback(); return 'Input'; } public function getDefaultViewName() { return 'Input'; } public function isSecure() { return true; } public function handleWriteError(AgaviParameterHolder $parameters) { return 'Input'; } public function getCredentials() { return 'Position.Add'; } } ?>