/** * SimpleSpool constructor * * @access public * * @param $user_id - the user of the spool * **/ public function __construct($user_id, $type, $id_chatroom = "", $dsn = NULL) { // logger("entered ChatSpool constructor", 3); $this->ntc = $GLOBALS['ChatSpool_ntc']; $this->rtc = $GLOBALS['ChatSpool_rtc']; $this->type = $type; if (!isset($id_chatroom) || empty($id_chatroom)) { $this->id_chatroom = isset($GLOBALS['id_chatroom']) ? $GLOBALS['id_chatroom'] : null; } else { $this->id_chatroom = $id_chatroom; } parent::__construct($user_id, $dsn); }