|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($options=null) | |
| setOptions (array $options) | |
| __destruct () | |
| getSoapClient () | |
| setSoapClient (Zend_Soap_Client $soapClient) | |
| logIn () | |
| logOut () | |
| isLoggedIn () | |
| setUsername ($username) | |
| setPassword ($password) | |
| setWsdl ($wsdl) | |
| getUsername () | |
| getPassword () | |
| getWsdl () | |
| getFormat ($filename) | |
| getVersion () | |
| compareVersion ($version) | |
Data Fields | |
| const | VERSION = '1.2' |
Protected Member Functions | |
| _initSoapClient ($endpoint) | |
Protected Attributes | |
| $_soapClient | |
| $_wsdl | |
| $_credentials | |
| $_loggedIn | |
Definition at line 31 of file LiveDocx.php.
| __construct | ( | $ | options = null | ) |
Constructor
Optionally, pass an array of options (or Zend_Config object).
If an option with the key 'soapClient' is provided, that value will be used to set the internal SOAP client used to connect to the LiveDocx service.
Use 'soapClient' in the case that you have a dedicated or (locally installed) licensed LiveDocx server. For example:
{code} $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( array ( 'username' => 'myUsername', 'password' => 'myPassword', 'soapClient' => new Zend_Soap_Client('https://api.example.com/path/mailmerge.asmx?WSDL') ) ); {code}
Replace the URI of the WSDL in the constructor of Zend_Soap_Client with that of your dedicated or licensed LiveDocx server.
If you are using the public LiveDocx server, simply pass 'username' and 'password'. For example:
{code} $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge( array ( 'username' => 'myUsername', 'password' => 'myPassword' ) ); {code}
If you prefer to not pass the username and password through the constructor, you can also call the following methods:
{code} $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
$phpLiveDocx->setUsername('myUsername') ->setPassword('myPassword'); {/code}
Or, if you want to specify your own SoapClient:
{code} $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
$phpLiveDocx->setUsername('myUsername') ->setPassword('myPassword');
$phpLiveDocx->setSoapClient( new Zend_Soap_Client('https://api.example.com/path/mailmerge.asmx?WSDL') ); {/code}
| array | Zend_Config | $options |
| Zend_Service_LiveDocx_Exception |
Reimplemented in Zend_Service_LiveDocx_MailMerge.
Definition at line 132 of file LiveDocx.php.

| __destruct | ( | ) |
Clean up and log out of LiveDocx service
Definition at line 172 of file LiveDocx.php.

| _initSoapClient | ( | $ | endpoint | ) | [protected] |
Init Soap client - connect to SOAP service
| string | $endpoint |
| Zend_Service_LiveDocx_Exception |
Definition at line 185 of file LiveDocx.php.

| compareVersion | ( | $ | version | ) |
Compare the current API version with another version
| string | $version | (STRING NOT FLOAT) |
Definition at line 411 of file LiveDocx.php.

| getFormat | ( | $ | filename | ) |
Return the document format (extension) of a filename
| string | $filename |
Definition at line 388 of file LiveDocx.php.
| getPassword | ( | ) |
Return current password
Definition at line 361 of file LiveDocx.php.

| getSoapClient | ( | ) |
Get SOAP client
Definition at line 203 of file LiveDocx.php.

| getUsername | ( | ) |
Return current username
Definition at line 346 of file LiveDocx.php.

| getVersion | ( | ) |
Return the current API version
Definition at line 399 of file LiveDocx.php.

| getWsdl | ( | ) |
Return WSDL of LiveDocx web service
Definition at line 376 of file LiveDocx.php.
| isLoggedIn | ( | ) |
Return true, if session is currently logged into the backend server
Definition at line 299 of file LiveDocx.php.

| logIn | ( | ) |
Log in to LiveDocx service
| string | $username | |
| string | $password |
| Zend_Service_LiveDocx_Exception |
Definition at line 231 of file LiveDocx.php.


| logOut | ( | ) |
Log out of the LiveDocx service
| Zend_Service_LiveDocx_Exception |
Definition at line 276 of file LiveDocx.php.


| setOptions | ( | array $ | options | ) |
Set options One or more of username, password, soapClient
| $options |
Definition at line 154 of file LiveDocx.php.

| setPassword | ( | $ | password | ) |
Set password
Definition at line 322 of file LiveDocx.php.
| setSoapClient | ( | Zend_Soap_Client $ | soapClient | ) |
Set SOAP client
| Zend_Soap_Client | $soapClient |
Definition at line 215 of file LiveDocx.php.
| setUsername | ( | $ | username | ) |
Set username
Definition at line 310 of file LiveDocx.php.
| setWsdl | ( | $ | wsdl | ) |
Set WSDL of LiveDocx web service
Definition at line 334 of file LiveDocx.php.
$_credentials [protected] |
Definition at line 58 of file LiveDocx.php.
$_loggedIn [protected] |
Definition at line 65 of file LiveDocx.php.
$_soapClient [protected] |
Definition at line 44 of file LiveDocx.php.
$_wsdl [protected] |
Definition at line 51 of file LiveDocx.php.
| const VERSION = '1.2' |