You can set up this feature to provide users with elementary interaction options via MyQ Desktop Client. A dialog box informs the user about a certain situation and lets them select from the following options: YES/NO, PRINT/NO, YES/NO/CANCEL. After the choice is made, the job is either printed, canceled, or processed based on the selection.
In the scripts, you can use all basic PHP functions and almost all of the classes, methods, and properties. The
only two methods not supported by the feature are $this->job->setPrinted() and $this->job->pause(). Apart from the common classes, methods, and properties, you can use several additional functions to communicate with the MyQ Desktop Client application.
The User interaction script runs in the context of the User class. The sent job can be accessed as $this->job .
Objects from all classes, except for the Session class, can be accessed via the job object, for example the owner $this->job->owner. Objects from the Session class can be accessed via the MyQ() global feature; for example:
MyQ()->logInfo("This message appears in the MyQ log.");.
How User Interaction works
Once a user sends a job to be printed, the main function is called to decide which dialog boxes should be shown.
The dialog boxes are shown to the user (one after another) and in each of them, the user reads the message and selects the interaction option (Yes, No, Print, Cancel).
Responses are sent back to the MyQ server.
If another user interaction is returned to MDC, the procedure returns to step 2.
When no more interactions are needed and if the job was not canceled, it is sent to MyQ.