/** * first, the cleaning mechanism is invoked, then * add a message to the spool by invoking the parent's method * * @access public * * @param $message_ha - message data as an hash * @param $recipients_ids_ar - list of recipients ids * * @return an AMA_Error object if something goes wrong * * (non-PHPdoc) * @see Spool::add_message() * * @author giorgio 20/ott/2014 * * added $check_on_uniqueness parameters to make the * definition compatible with Spool::add_message() * **/ public function add_message($message_ha, $recipients_ids_ar = array(), $check_on_uniqueness = false) { $this->clean(); /* * Call parent add_message with no checks on message uniqueness */ return parent::add_message($message_ha, $recipients_ids_ar, $check_on_uniqueness); }