Info Panel
Roll it!   ⇔
1 - Documantation
* Knowledge Base
  • Mvc
  • Application
  • Advanced
  • Operators
  • Api
* Origin Template
  • Customize
* Core Classes
* Classes

* all grey titles exists but not documented yet

Send Notif

Type: core

Class: Notif

Platform: 2v

Function: sendNotif

Visibility: public

Parameter: sendNotif($notifNum,$externalVar,$fileName,$fileToRequireDefault)

Description:
Simply generate a notification by it's number. The notifications can also be dynamic with: $externalVar, notification data will be loaded from the $fileName we choose.
- The notifications numbers and text can be set at the notification file we choosing at loadNotifs.
- The notification template can be set at notif.
Parameters:
(required) - string|array - $notifNum - The notification number.
(required) - string|array - $fileToRequireDefault - File to require default.
(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).
(optional) - string|array|null - $externalVar - The external variant to use in this notification.
Return:
array - The specific notification including: $notifType,$authLevel,$notifTextRand.
Callable from (extended classes):
application: controller,view
advanced: controller,view
operators: controller,view
api: controller,view
Info Panel
Roll it!   ⇔