CRM12547, CRM-12357 fix Mailing Contact api to comply with api conformance tests
authoreileen <eileen@fuzion.co.nz>
Wed, 15 May 2013 10:54:25 +0000 (22:54 +1200)
committereileen <eileen@fuzion.co.nz>
Wed, 15 May 2013 13:57:35 +0000 (01:57 +1200)
commitb14ce77343d544f2895954c1469f6a7c5d828446
tree4f113d52b9ce8eacba4a01b9bd1bc0dc5b616240
parent2f3d72cfc04e3d8642d3a5b26b23a012d74d70a8
CRM12547, CRM-12357 fix Mailing Contact api to comply with api conformance tests
fix includes -
- using spec function to provide documentation, enforce required fields, provide default, enforce options
- using standard api function to process 'limit', 'sort' etc
- skipping checks for getByID because in this area the api cannot be made standard
NOTE that the default limit has been set to the api default (25). Making
this non standard for a particular use-case doesn't make sense.

Preferred calling method is
$params['options' => array('sort' => 'contact_id DESC', 'limit' => 50,
'offset' => 200)

re-fix mailing contact api
api/v3/MailingContact.php
tests/phpunit/api/v3/MailingContactTest.php
tests/phpunit/api/v3/SyntaxConformanceAllEntitiesTest.php