source of /sprout/Helpers/AdminError.php<?php /* * Copyright (C) 2017 Karmabunny Pty Ltd. * * This file is a part of SproutCMS. * * SproutCMS is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, either * version 2 of the License, or (at your option) any later version. * * For more information, visit <http://getsproutcms.com>. */ namespace Sprout\Helpers; /** * Handles errors in the admin. * These should be returned in the _getAddForm(), _getEditForm() and _getDeleteForm() functions. **/ class AdminError { private $message; public function __construct($message) { $this->message = $message; } public function getMessage() { return $this->message; } }
|