* @package com.woltlab.wcf * @subpackage data * @category Community Framework */ interface IMessage extends IUserContent { /** * Returns a simplified message (only inline codes), truncated to 255 characters by default. * * @param integer $maxLength * @return string */ public function getExcerpt($maxLength = 255); /** * Returns formatted message text. * * @return string */ public function getFormattedMessage(); /** * Returns message text. * * @return string */ public function getMessage(); /** * Returns true, if message is visible for current user. * * @return boolean */ public function isVisible(); /** * Returns formatted message text. * * @see \wcf\data\IMessage::getFormattedMessage() */ public function __toString(); }