Class Message

Description

Message objects are returned by the Logger::retrieve_messages() method, and contain information about the logged message, such as the date when the message was logged and the message's level.

Located in /common/logger/interface/message.php (line 27)


	
			
Method Summary
Message __construct (string $message_content, string $message_level)
the get_level ()
String get_message ()
void set_date (Date $date)
Methods
Constructor __construct (line 49)

Builds a Message object.

The message's date is set to current date and time.

Message __construct (string $message_content, string $message_level)
  • string $message_content: The message in itself.
  • string $message_level: The level of the message.
get_level (line 60)

Returns the level of the message.

  • return: level of the message.
the get_level ()
get_message (line 81)

Returns the message as a string, creation date and message level excluded.

  • return: The message in itself.
String get_message ()
set_date (line 72)

Changes the date the message was created.

The method should typically be used when messages are retrieved using the Logger::retrieve_messages() method.

void set_date (Date $date)
  • Date $date: the new date.

Documentation generated on Tue, 17 Nov 2009 19:00:39 +0100 by phpDocumentor 1.4.2