The session object is accessible via the MyQ() global function. The Session class has the following methods:
Methods
-
User getUserByUserName(string $userName): Find a MyQ user by their user name. If no user is found,nullis returned. -
logError(string $message): Create an error message in the MyQ log. -
logWarning(string $message): Create a warning message in the MyQ log. -
logInfo(string $message): Create an info message in the MyQ log. -
logNotice(string $message): Create a notice message in the MyQ log. -
logDebug(string $message): Create a debug message in the MyQ log. -
string getJobsPath(): Get the path to the folder on the MyQ server where the print job is stored. Ends with a backslash.