setBBCode() public method

Set whether we should use BB Code when rendering.
public setBBCode ( boolean $useBBCode ) : void
$useBBCode boolean Use BB Code?
return void
コード例 #1
0
ファイル: Message.php プロジェクト: phpmyadmin/phpmyadmin
 /**
  * get Message with customized content
  *
  * shorthand for getting a customized message
  *
  * @param string  $message A localized string
  * @param integer $type    A numeric representation of the type of message
  *
  * @return Message
  * @static
  */
 public static function raw($message, $type = Message::NOTICE)
 {
     $r = new Message('', $type);
     $r->setMessage($message);
     $r->setBBCode(false);
     return $r;
 }