function SAPO_Broker_Tail($args = array()) { $args = array_merge(array('max_lines_before_quit' => 0), $args); $this->debug = $args['debug']; $this->tailfile = $args['file']; SAPO_Broker::dodebug("SAPO_Broker_Tail innited with file " . $args['file']); $this->max_lines_before_quit = $args['max_lines_before_quit']; $this->publish_count = 0; $this->initted = TRUE; }