Class WebClientPrint
WebClientPrint provides functions for registering the "WebClientPrint for PHP" solution script code in PHP web pages as well as for processing client requests and managing the internal cache.
Copyright: (c) 2019, Neodynamic SRL
License: Neodynamic EULA
Author: Neodynamic <http://neodynamic.com/support>
Located at WebClientPrint.php
public static
|
|
public static
string
|
|
public static
|
|
public static
string
|
#
createWcppDetectionScript( string $webClientPrintControllerAbsoluteUrl, string $sessionID )
Returns script code for detecting whether WCPP is installed at the client machine. |
public static
string
|
#
createScript( string $webClientPrintControllerAbsoluteUrl, string $clientPrintJobAbsoluteUrl, mixed $sessionID )
Returns a [script] tag linking to the WebClientPrint script code by using the specified URL for the client print job generation. |
public static
|
#
generateScript( type $webClientPrintControllerAbsoluteUrl, type $queryString )
Generates the WebClientPrint scripts based on the specified query string. Result is stored in the HTTP Response Content |
public static
integer
|
#
GetProcessRequestType( string $queryString )
Determines the type of process request based on the Query String value. |
string |
VERSION
|
'5.0.0.0' |
|
string |
CLIENT_PRINT_JOB
|
'clientPrint' |
|
string |
WCP
|
'WEB_CLIENT_PRINT' |
|
string |
WCP_SCRIPT_AXD_GET_PRINTERS
|
'getPrinters' |
|
string |
WCP_SCRIPT_AXD_GET_PRINTERSINFO
|
'getPrintersInfo' |
|
string |
WCPP_SET_PRINTERS
|
'printers' |
|
string |
WCPP_SET_PRINTERSINFO
|
'printersInfo' |
|
string |
WCP_SCRIPT_AXD_GET_WCPPVERSION
|
'getWcppVersion' |
|
string |
WCPP_SET_VERSION
|
'wcppVer' |
|
string |
GEN_WCP_SCRIPT_URL
|
'u' |
|
string |
GEN_DETECT_WCPP_SCRIPT
|
'd' |
|
string |
SID
|
'sid' |
|
string |
PING
|
'wcppping' |
|
string |
WCP_CACHE_WCPP_INSTALLED
|
'WCPP_INSTALLED' |
|
string |
WCP_CACHE_WCPP_VER
|
'WCPP_VER' |
|
string |
WCP_CACHE_PRINTERS
|
'PRINTERS' |
|
string |
WCP_CACHE_PRINTERSINFO
|
'PRINTERSINFO' |
|
integer |
GenPrintScript
|
0 |
#
Generates printing script. |
integer |
GenWcppDetectScript
|
1 |
#
Generates WebClientPrint Processor (WCPP) detection script. |
integer |
ClientSetInstalledPrinters
|
2 |
#
Sets the installed printers list in the website cache. |
integer |
ClientGetInstalledPrinters
|
3 |
#
Gets the installed printers list from the website cache. |
integer |
ClientSetWcppVersion
|
4 |
#
Sets the WebClientPrint Processor (WCPP) Version in the website cache. |
integer |
ClientGetWcppVersion
|
5 |
#
Gets the WebClientPrint Processor (WCPP) Version from the website cache. |
integer |
ClientSetInstalledPrintersInfo
|
6 |
#
Sets the installed printers list with detailed info in the website cache. |
integer |
ClientGetInstalledPrintersInfo
|
7 |
#
Gets the installed printers list with detailed info from the website cache. |
public static
string
|
$licenseOwner | '' |
#
Gets or sets the License Owner |
public static
string
|
$licenseKey | '' |
#
Gets or sets the License Key |
public static
string
|
$webClientPrintAbsoluteUrl | '' |
#
Gets or sets the ABSOLUTE URL to WebClientPrint.php file |
public static
string
|
$wcpCacheFolder | '' |
#
Gets or sets the wcpcache folder URL RELATIVE to WebClientPrint.php file. FILE WRITE permission on this folder is required!!! |