Functions Specific to Supervision Server
Link to the main article: Supervision Server (SVS)
The following functions are additions to the PHP API and provide functionality needed by the SVS. They are implemented as a part of the SVS and are not part of the php_jedox_palo extension.
|
Writes a string to the log_file. For example, this could be used for debugging purposes. |
|
Sends an error message with title of the box and the message to Jedox OLAP server that will be transferred to the client. Notes: - If the error is triggered by a macro, then no message box will be shown in Jedox Web (in this case "PHP" is the client and not "Jedox Web UI"). - Currently it is not possible to use sep_error() with the OnUserAuthenticate and OnUserAuthorize events. |
|
Returns the user who made the change |
|
Returns the groups of the user who made the change |
The last two functions can only be called within functions that pass the necessary parameter sid2. As an example we take SalesCube () as the callback function of InitCubeWorker:
Copy
function SalesCube($database, $cube, $areaid, $sid2, $coordinates, $value)
{
$user = get_user_for_sid($sid2); // user who made the change
$groups = get_groups_for_sid($sid2); // groups of the user who made the change
}
Updated September 27, 2022