| 1 | <?php |
| 2 | |
| 3 | namespace wcf\data\smiley; |
| 4 | |
| 5 | use wcf\data\DatabaseObjectEditor; |
| 6 | use wcf\data\IEditableCachedObject; |
| 7 | use wcf\system\cache\builder\SmileyCacheBuilder; |
| 8 | |
| 9 | /** |
| 10 | * Provides functions to edit smilies. |
| 11 | * |
| 12 | * @author Alexander Ebert |
| 13 | * @copyright 2001-2019 WoltLab GmbH |
| 14 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> |
| 15 | * |
| 16 | * @method static Smiley create(array $parameters = []) |
| 17 | * @method Smiley getDecoratedObject() |
| 18 | * @mixin Smiley |
| 19 | */ |
| 20 | class SmileyEditor extends DatabaseObjectEditor implements IEditableCachedObject |
| 21 | { |
| 22 | /** |
| 23 | * @inheritDoc |
| 24 | */ |
| 25 | public static $baseClass = Smiley::class; |
| 26 | |
| 27 | /** |
| 28 | * @inheritDoc |
| 29 | */ |
| 30 | public static function resetCache() |
| 31 | { |
| 32 | SmileyCacheBuilder::getInstance()->reset(); |
| 33 | } |
| 34 | } |