@@ -24,6 +24,7 @@ public function __construct($restClient)
24
24
* 'withmetadata' => (boolean) {Whether the metadata catalogs should be included in the response. },
25
25
* 'withscheduling' => (boolean) {Whether the scheduling information should be included in the response. (version 1.1.0 and higher)},
26
26
* 'withpublications' => (boolean) {Whether the publication ids and urls should be included in the response.},
27
+ * 'includeInternalPublication' => (boolean) {Whether internal publications should be included.},
27
28
* 'onlyWithWriteAccess' => (boolean) {Whether only to get the events to which we have write access.},
28
29
* 'sort' => (array) {an assiciative array for sorting e.g. ['title' => 'DESC']},
29
30
* 'limit' => (int) {the maximum number of results to return},
@@ -47,7 +48,7 @@ public function getAll($params = [])
47
48
48
49
$ acceptableParams = [
49
50
'sign ' , 'withacl ' , 'withmetadata ' , 'withpublications ' ,
50
- 'onlyWithWriteAccess ' , 'sort ' , 'limit ' , 'offset ' , 'filter '
51
+ 'onlyWithWriteAccess ' , 'sort ' , 'limit ' , 'offset ' , 'filter ' , ' includeInternalPublication '
51
52
];
52
53
53
54
if ($ this ->restClient ->hasVersion ('1.1.0 ' )) {
@@ -106,6 +107,7 @@ public function getBySeries($seriesId, $params = [])
106
107
* 'withmetadata' => (boolean) {Whether the metadata catalogs should be included in the response. },
107
108
* 'withscheduling' => (boolean) {Whether the scheduling information should be included in the response. (version 1.1.0 and higher)},
108
109
* 'withpublications' => (boolean) {Whether the publication ids and urls should be included in the response.}
110
+ * 'includeInternalPublication' => (boolean) {Whether internal publications should be included.}
109
111
* ]
110
112
*
111
113
* @return array the response result ['code' => 200, 'body' => 'The event (Object)']
@@ -116,7 +118,7 @@ public function get($eventId, $params = [])
116
118
$ query = [];
117
119
118
120
$ acceptableParams = [
119
- 'sign ' , 'withacl ' , 'withmetadata ' , 'withpublications '
121
+ 'sign ' , 'withacl ' , 'withmetadata ' , 'withpublications ' , ' includeInternalPublication '
120
122
];
121
123
122
124
if ($ this ->restClient ->hasVersion ('1.1.0 ' )) {
@@ -438,13 +440,20 @@ public function deleteMetadata($eventId, $type)
438
440
*
439
441
* @param string $eventId the event identifier
440
442
* @param boolean $sign (optional) Whether publication urls (version 1.7.0 or higher) and distribution urls should be pre-signed.
443
+ * @param boolean $includeInternalPublication (optional) Whether internal publications should be included.
441
444
*
442
445
* @return array the response result ['code' => 200, 'body' => '{The list of publications}']
443
446
*/
444
- public function getPublications ($ eventId , $ sign = false )
447
+ public function getPublications ($ eventId , $ sign = false , $ includeInternalPublication = false )
445
448
{
446
449
$ uri = self ::URI . "/ {$ eventId }/publications " ;
447
- $ query ['sign ' ] = $ sign ;
450
+ if ($ sign ) {
451
+ $ query ['sign ' ] = 'true ' ;
452
+ }
453
+ if ($ includeInternalPublication ) {
454
+ $ query ['includeInternalPublication ' ] = 'true ' ;
455
+ }
456
+
448
457
$ options = $ this ->restClient ->getQueryParams ($ query );
449
458
return $ this ->restClient ->performGet ($ uri , $ options );
450
459
}
0 commit comments