|
9 | 9 | * @package Contentstack
|
10 | 10 | * @author Uttam K Ukkoji <[email protected]>
|
11 | 11 | * @author Rohit Mishra <[email protected]>
|
12 |
| - * @copyright 2012-2020 Contentstack. All Rights Reserved |
| 12 | + * @copyright 2012-2021 Contentstack. All Rights Reserved |
13 | 13 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
|
14 | 14 | * @link https://pear.php.net/package/contentstack
|
15 | 15 | * */
|
|
27 | 27 | * @package Contentstack
|
28 | 28 | * @author Uttam K Ukkoji <[email protected]>
|
29 | 29 | * @author Rohit Mishra <[email protected]>
|
30 |
| - * @copyright 2012-2020 Contentstack. All Rights Reserved |
| 30 | + * @copyright 2012-2021 Contentstack. All Rights Reserved |
31 | 31 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence
|
32 | 32 | * @link https://pear.php.net/package/contentstack
|
33 | 33 | * */
|
@@ -143,6 +143,7 @@ public function includeReference($field_uids = array())
|
143 | 143 | /**
|
144 | 144 | * To search the given string in the entries
|
145 | 145 | *
|
| 146 | + * @deprecated since verion 2.2.0 |
146 | 147 | * @param $search - string to be search in entries
|
147 | 148 | *
|
148 | 149 | * @return Query
|
@@ -307,6 +308,23 @@ public function includeFallback()
|
307 | 308 |
|
308 | 309 | return $this->queryObject;
|
309 | 310 | }
|
| 311 | + |
| 312 | + /** |
| 313 | + * To include branch of publish content. |
| 314 | + * |
| 315 | + * @return Query |
| 316 | + */ |
| 317 | + public function includeBranch() |
| 318 | + { |
| 319 | + $this->queryObject->_query = call_user_func( |
| 320 | + 'contentstackAddBoolean', |
| 321 | + 'include_branch', |
| 322 | + $this->queryObject->_query |
| 323 | + ); |
| 324 | + |
| 325 | + return $this->queryObject; |
| 326 | + } |
| 327 | + |
310 | 328 | /**
|
311 | 329 | * To include schema along with entries
|
312 | 330 | *
|
|
0 commit comments