Load Notifications Via Php Array
Function: loadNotifsViaArray
Visibility: public
Parameter: loadNotifsViaArray($fileName)
Description:
Please refer to: loadNotifs class.
Parameters:
(required) - string - $fileName - The name of the file we want to load the notifications from (without extention), located at: /text/notifs/{language code}/ (actual file will be with php/xml extention).
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: