本文整理汇总了PHP中PMA_Message::rawNotice方法的典型用法代码示例。如果您正苦于以下问题:PHP PMA_Message::rawNotice方法的具体用法?PHP PMA_Message::rawNotice怎么用?PHP PMA_Message::rawNotice使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PMA_Message
的用法示例。
在下文中一共展示了PMA_Message::rawNotice方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addMessage
/**
* add another raw message to be concatenated on displaying
*
* @param mixed $message to be added
* @param string $separator to use between this and previous string/message
*
* @return void
*/
public function addMessage($message, $separator = ' ')
{
if (strlen($separator)) {
$this->addedMessages[] = $separator;
}
if ($message instanceof PMA_Message) {
$this->addedMessages[] = $message;
} else {
$this->addedMessages[] = PMA_Message::rawNotice($message);
}
}
示例2: testAddMessages
/**
* testing add messages method
*
* @return void
*/
public function testAddMessages()
{
$messages = array();
$messages[] = "Test1";
$messages[] = new PMA_Message("PMA_Test2", PMA_Message::ERROR);
$messages[] = "Test3";
$this->object->addMessages($messages, '');
$this->assertEquals(array(PMA_Message::rawNotice('Test1'), PMA_Message::error("PMA_Test2"), PMA_Message::rawNotice('Test3')), $this->object->getAddedMessages());
}