Load Notifications Via Xml
Function: loadNotifsViaXml
Visibility: public
Parameter: loadNotifsViaXml($fileName)
Description:
Please refer to: loadNotifs class.
Parameters:
(required) - string - $fileName - The name of the file we want to load the notifications from (without extension), located at: /text/notifs/{language code}/ (actual file will be with php/xml extension).
Return:
array - The notifications from file.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
example: 1
Let's say that we want to load a notification file, it must be located first in the designated directory mentioned above. The text that will be stored there must be in array named:
$notifs
.
How to call (example):
Possible outcome (example):
Output: