21
Jan
Written by: Jonathan Maron. Stored in: Zend Framework.

The first implementation of LiveDocx in PHP was in a family of classes called Tis_Service_LiveDocx. It was necessary to give the classes the prefix Tis_ as the Zend Framework coding standards allow the prefix Zend_ to be used only for classes, which are part of the official Zend Framework.

As of the first alpha version of Zend Framework 1.10, the functionality of Tis_Service_LiveDocx is available directly in the Zend Framework in Zend_Service_LiveDocx.

As of today, the use of Tis_Service_LiveDocx is deprecated. Instead use Zend_Service_LiveDocx.

With the exception of the constructor, the API of Zend_Service_LiveDocx is 100% backward compatible to that of Tis_Service_LiveDocx.

At the wish of the Zend Framework community, the constructor was updated from:

1
2
// deprecated - do not use
$mailMerge = new Tis_Service_LiveDocx_MailMerge('myUsername', 'myPassword');

to:

1
2
3
4
5
6
7
8
9
10
11
12
13
// correct - do use
$mailMerge = new Zend_Service_LiveDocx_MailMerge(
    array (
        'username' => 'myUsername',
        'password' => 'myPassword'
    )
);
 
// alternatively
$mailMerge = new Zend_Service_LiveDocx_MailMerge();
 
$mailMerge->setUsername('myUsername')
          ->setPassword('myPassword');

I would encourage you to update your projects to use the Zend_Service_LiveDocx family of classes.

If you need any assistance in migrating your code, please post a support request into the support forum.

Bookmark and Share

Leave a Reply