You are here

public function heartbeatParser::get_messages in Heartbeat 6.3

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

Gets the messages as they exist for the time asked

File

includes/heartbeatparser.inc, line 70

Class

heartbeatParser

Code

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