本文整理匯總了PHP中Dog::LAST_MSG方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dog::LAST_MSG方法的具體用法?PHP Dog::LAST_MSG怎麽用?PHP Dog::LAST_MSG使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dog
的用法示例。
在下文中一共展示了Dog::LAST_MSG方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processMessage
private static function processMessage(Dog_Server $server, $message)
{
# IBEDS
$message = str_replace('\\ţ', ' ', $message);
# Parse the message
self::$LAST_MSG = new Dog_IRCMsg($message);
# Log to server log
if (self::$LAST_MSG->shouldLog()) {
Dog_Log::server($server, $message);
}
# Include event code
$event = self::$LAST_MSG->getEvent();
$path = DOG_PATH . 'dog_event/' . $event . '.php';
if (Common::isFile($path)) {
include $path;
} else {
Dog_Log::debugMessage();
}
# if FIXes invalid users on privmsg hooks :S
if (self::$EVENT_ERROR === false) {
# Include event hooks
// $path = DOG_PATH.'event_plug/'.$event.'.php';
// if (Common::isFile($path))
// {
// include $path;
// }
# Execute module hooks
Dog_Module::map('event_' . $event);
}
# Clear vars that might not get set in events.
# The events, which get executed first, will call Dog::setupUser() and Dog::setupChannel()
self::$TRIGGERED = false;
self::$LAST_USER = false;
self::$LAST_CHANNEL = false;
self::$EVENT_ERROR = false;
}