You are here

public function heartbeatParser::get_messages in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 includes/heartbeatparser.inc \heartbeatParser::get_messages()
  2. 6.3 includes/heartbeatparser.inc \heartbeatParser::get_messages()

Gets the messages as they exist for the time asked

File

includes/heartbeatparser.inc, line 396
HeartbeatParser object Parses database messages into a well formed stream of activity messages.

Class

heartbeatParser
Class heartbeatParser

Code

public function get_messages($limit = 0) {
  if ($limit > 0) {
    return array_slice($this->_messages, 0, $limit);
  }
  return $this->_messages;
}