GeezerVison is showing github.com — Merge pull request #25 from contentstack/feature/live-preview · contentstack/contentstack-php@d06e2d7
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .gitignore +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,4 +13,5 @@ test/ImageTransformreport.html | 13 | 13 | examples/index.php | 14 | 14 | .DS_Store | 15 | 15 | tmp/ | | 16 | +test/result.json | 16 | 17 | stdout |
Collapse file Copy file name to clipboardExpand all lines: CHANGELOG.md +6Lines changed: 6 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 |
| 2 | 2 | ## CHANGELOG | 3 | 3 | ------------------------------------------------ | | 4 | +## Version 2.1.0 | | 5 | +###### Date: 29-Oct-2021 | | 6 | +### New Feature | | 7 | + - Live Preview feature support added | | 8 | + - Content branching feature support added | | 9 | +------------------------------------------------ | 4 | 10 |
| 5 | 11 | ## Version 2.0.0 | 6 | 12 | ###### Date: 02-Apr-2021 | |
Collapse file Copy file name to clipboardExpand all lines: LICENSE.txt +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | The MIT License (MIT) | 2 | 2 |
| 3 | | -Copyright (c) 2012-2020 Contentstack (http://app.contentstack.com). All Rights Reserved | | 3 | +Copyright (c) 2012-2021 Contentstack (http://app.contentstack.com). All Rights Reserved | 4 | 4 |
| 5 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | 6 | 6 | of this software and associated documentation files (the "Software"), to deal | |
Collapse file Copy file name to clipboardExpand all lines: src/Config/index.php +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | * @package Contentstack | 9 | 9 | | 10 | 10 | | 11 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 11 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 12 | 12 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 13 | 13 | * @link https://pear.php.net/package/contentstack | 14 | 14 | * */ | |
Collapse file Copy file name to clipboardExpand all lines: src/Contentstack.php +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | * @package Contentstack | 9 | 9 | | 10 | 10 | | 11 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 11 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 12 | 12 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 13 | 13 | * @link https://pear.php.net/package/contentstack | 14 | 14 | */ | | 26 | 26 | * @package Contentstack | 27 | 27 | | 28 | 28 | | 29 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 29 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 30 | 30 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 31 | 31 | * @link https://pear.php.net/package/contentstack | 32 | 32 | */ | @@ -46,7 +46,7 @@ abstract class Contentstack | 46 | 46 | public static function Stack($api_*** = '', | 47 | 47 | $access_token = '', | 48 | 48 | $environment = '', | 49 | | - $config = array('region'=> '') | | 49 | + $config = array('region'=> '', 'branch'=> '', 'live_preview' => array('enable' => false, 'host' => 'api.contentstack.io')) | 50 | 50 | ) { | 51 | 51 | return new Stack($api_***, $access_token, $environment, $config); | 52 | 52 | } | |
Collapse file Copy file name to clipboardExpand all lines: src/ContentstackRegion.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | * @package Contentstack | 9 | 9 | | 10 | 10 | | 11 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 11 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 12 | 12 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 13 | 13 | * @link https://pear.php.net/package/contentstack | 14 | 14 | * */ | | 21 | 21 | * @package Contentstack | 22 | 22 | | 23 | 23 | | 24 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 24 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 25 | 25 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 26 | 26 | * @link https://pear.php.net/package/contentstack | 27 | 27 | * */ | |
Collapse file Copy file name to clipboardExpand all lines: src/Error/CSException.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | * @package Contentstack | 10 | 10 | | 11 | 11 | | 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 | * */ | | 24 | 24 | * @package Contentstack | 25 | 25 | | 26 | 26 | | 27 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 27 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 28 | 28 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 29 | 29 | * @link https://pear.php.net/package/contentstack | 30 | 30 | * */ | |
Collapse file Copy file name to clipboardExpand all lines: src/Stack/Assets.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | * @package Contentstack | 11 | 11 | | 12 | 12 | | 13 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 13 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 14 | 14 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 15 | 15 | * @link https://pear.php.net/package/contentstack | 16 | 16 | * */ | | 31 | 31 | * @package Contentstack | 32 | 32 | | 33 | 33 | | 34 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 34 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 35 | 35 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 36 | 36 | * @link https://pear.php.net/package/contentstack | 37 | 37 | * */ | |
Collapse file Copy file name to clipboardExpand all lines: src/Stack/BaseQuery.php +20-2Lines changed: 20 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | * @package Contentstack | 10 | 10 | | 11 | 11 | | 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 | | 29 | 29 | | 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 | * | |
Collapse file Copy file name to clipboardExpand all lines: src/Stack/ContentType.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | * @package Contentstack | 11 | 11 | | 12 | 12 | | 13 | | - * @copyright 2012-2020 Contentstack. All Rights Reserved | | 13 | + * @copyright 2012-2021 Contentstack. All Rights Reserved | 14 | 14 | * @license https://github.com/contentstack/contentstack-php/blob/master/LICENSE.txt MIT Licence | 15 | 15 | * @link https://pear.php.net/package/contentstack | 16 | 16 | * */ | | 27 | 27 | * @package Contentstack | 28 | 28 | | 29 | 29 | | 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 | * */ | |
|