2 namespace wcf\data\smiley
;
3 use wcf\data\DatabaseObject
;
5 use wcf\util\StringUtil
;
10 * @author Alexander Ebert
11 * @copyright 2001-2014 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package com.woltlab.wcf
14 * @subpackage data.smiley
15 * @category Community Framework
17 class Smiley
extends DatabaseObject
{
19 * @see \wcf\data\DatabaseObject::$databaseTableName
21 protected static $databaseTableName = 'smiley';
24 * @see \wcf\data\DatabaseObject::$databaseTableIndexName
26 protected static $databaseTableIndexName = 'smileyID';
29 * Returns the url to this smiley.
33 public function getURL() {
34 return WCF
::getPath().$this->smileyPath
;
38 * Returns all aliases for this smiley.
40 * @return array<string>
42 public function getAliases() {
43 if (!$this->aliases
) return array();
45 return explode("\n", StringUtil
::unifyNewlines($this->aliases
));