See Release Notes
Long Term Support Release
New messaging class.
Copyright: | 2015 onwards Ankit Agarwal |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 341 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
message:: (10 methods):
get_fullmessagehtml()
get_fullmessage()
get_smallmessage()
set_customdata()
get_message_with_additional_content()
__get()
__set()
__isset()
set_additional_content()
get_eventobject_for_processor()
get_fullmessagehtml($processorname = '') X-Ref |
Fullmessagehtml content including any processor specific content. param: string $processorname Name of the processor. return: mixed|string |
get_fullmessage($processorname = '') X-Ref |
Fullmessage content including any processor specific content. param: string $processorname Name of the processor. return: mixed|string |
get_smallmessage($processorname = '') X-Ref |
Smallmessage content including any processor specific content. param: string $processorname Name of the processor. return: mixed|string |
set_customdata($customdata) X-Ref |
Always JSON encode customdata. param: mixed $customdata a data structure that must be serialisable using json_encode(). |
get_message_with_additional_content($processorname, $messagetype) X-Ref |
Helper method used to get message content added with processor specific content. param: string $processorname Name of the processor. param: string $messagetype one of 'fullmessagehtml', 'fullmessage', 'smallmessage'. return: mixed|string |
__get($prop) X-Ref |
Magic getter method. param: string $prop name of property to get. return: mixed |
__set($prop, $value) X-Ref |
Magic setter method. param: string $prop name of property to set. param: mixed $value value to assign to the property. return: mixed |
__isset($prop) X-Ref |
Magic method to check if property is set. param: string $prop name of property to check. return: bool |
set_additional_content($processorname, $content) X-Ref |
This method lets you define content that would be added to the message only for specific message processors. Example of $content:- array('fullmessagehtml' => array('header' => 'header content', 'footer' => 'footer content'), 'smallmessage' => array('header' => 'header content for small message', 'footer' => 'footer content'), '*' => array('header' => 'header content for all types', 'footer' => 'footer content') ) param: string $processorname name of the processor. param: array $content content to add in the above defined format. |
get_eventobject_for_processor($processorname) X-Ref |
Get a event object for a specific processor in stdClass format. param: string $processorname Name of the processor. return: \stdClass event object in stdClass format. |