|
@@ 1029-1035 (lines=7) @@
|
| 1026 |
|
$args[] = 'SELECT `id` FROM `' |
| 1027 |
|
. $this->cardsTableName . '` WHERE `addressbookid` = ?'; |
| 1028 |
|
break; |
| 1029 |
|
case 'getcontacts': |
| 1030 |
|
$args[] = 'SELECT `id`, `uri`, `carddata`, `lastmodified`, ' |
| 1031 |
|
. '`addressbookid` AS `parent`, `fullname` AS `displayname` FROM `' |
| 1032 |
|
. $this->cardsTableName . '` WHERE `addressbookid` = ?'; |
| 1033 |
|
$args[] = isset($options['limit']) ? $options['limit'] : null; |
| 1034 |
|
$args[] = isset($options['offset']) ? $options['offset'] : null; |
| 1035 |
|
break; |
| 1036 |
|
case 'getcontactsomitdata': |
| 1037 |
|
$args[] = 'SELECT `id`, `uri`, `lastmodified`, ' |
| 1038 |
|
. '`addressbookid` AS `parent`, `fullname` AS `displayname` FROM `' |
|
@@ 1036-1042 (lines=7) @@
|
| 1033 |
|
$args[] = isset($options['limit']) ? $options['limit'] : null; |
| 1034 |
|
$args[] = isset($options['offset']) ? $options['offset'] : null; |
| 1035 |
|
break; |
| 1036 |
|
case 'getcontactsomitdata': |
| 1037 |
|
$args[] = 'SELECT `id`, `uri`, `lastmodified`, ' |
| 1038 |
|
. '`addressbookid` AS `parent`, `fullname` AS `displayname` FROM `' |
| 1039 |
|
. $this->cardsTableName . '` WHERE `addressbookid` = ?'; |
| 1040 |
|
$args[] = isset($options['limit']) ? $options['limit'] : null; |
| 1041 |
|
$args[] = isset($options['offset']) ? $options['offset'] : null; |
| 1042 |
|
break; |
| 1043 |
|
case 'numcontacts': |
| 1044 |
|
$args[] = 'SELECT COUNT(*) AS `count` FROM `' |
| 1045 |
|
. $this->cardsTableName . '` WHERE `addressbookid` = ?'; |