5 * Default interface for message database objects.
7 * @author Alexander Ebert
8 * @copyright 2001-2014 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
12 * @category Community Framework
14 interface IMessage
extends IUserContent
{
16 * Returns a simplified message (only inline codes), truncated to 255 characters by default.
18 * @param integer $maxLength
21 public function getExcerpt($maxLength = 255);
24 * Returns formatted message text.
28 public function getFormattedMessage();
31 * Returns message text.
35 public function getMessage();
38 * Returns true, if message is visible for current user.
42 public function isVisible();
45 * Returns formatted message text.
47 * @see \wcf\data\IMessage::getFormattedMessage()
49 public function __toString();