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.

  • sep_log(string message)
Writes a string to the log-file. For example, this could be used for debugging purposes.
  • sep_error(string title, string message)

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.

  • get_user_for_sid(string sid2)
Returns the user who made the change
  • get_groups_for_sid(string sid2)
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 January 29, 2024