Upgrade to 3.2.0

This commit is contained in:
Bastian Allgeier
2019-06-25 09:56:08 +02:00
parent 9e18cf635d
commit 9c89153d35
296 changed files with 14408 additions and 2504 deletions

View File

@@ -2,6 +2,15 @@
namespace Kirby\Cms;
/**
* PageSiblings
*
* @package Kirby Cms
* @author Bastian Allgeier <bastian@getkirby.com>
* @link https://getkirby.com
* @copyright Bastian Allgeier GmbH
* @license https://getkirby.com/license
*/
trait PageSiblings
{
@@ -25,15 +34,6 @@ trait PageSiblings
return $this->nextListed() !== null;
}
/**
* @deprecated 3.0.0 Use `Page::hasNextListed` instead
* @return boolean
*/
public function hasNextVisible(): bool
{
return $this->hasNextListed();
}
/**
* Checks if there's a next unlisted
* page in the siblings collection
@@ -45,6 +45,15 @@ trait PageSiblings
return $this->nextUnlisted() !== null;
}
/**
* @deprecated 3.0.0 Use `Page::hasNextListed` instead
* @return boolean
*/
public function hasNextVisible(): bool
{
return $this->hasNextListed();
}
/**
* @deprecated 3.0.0 Use `Page::hasPrevUnlisted` instead
* @return boolean
@@ -97,7 +106,7 @@ trait PageSiblings
/**
* Returns the next listed page if it exists
*
* @return self|null
* @return Kirby\Cms\Page|null
*/
public function nextListed()
{
@@ -107,7 +116,7 @@ trait PageSiblings
/**
* Returns the next unlisted page if it exists
*
* @return self|null
* @return Kirby\Cms\Page|null
*/
public function nextUnlisted()
{
@@ -135,7 +144,7 @@ trait PageSiblings
/**
* Returns the previous listed page
*
* @return self|null
* @return Kirby\Cms\Page|null
*/
public function prevListed()
{
@@ -145,7 +154,7 @@ trait PageSiblings
/**
* Returns the previous unlisted page
*
* @return self|null
* @return Kirby\Cms\Page|null
*/
public function prevUnlisted()
{
@@ -164,7 +173,7 @@ trait PageSiblings
/**
* Private siblings collector
*
* @return Collection
* @return Kirby\Cms\Collection
*/
protected function siblingsCollection()
{
@@ -179,7 +188,7 @@ trait PageSiblings
* Returns siblings with the same template
*
* @param bool $self
* @return self
* @return Kirby\Cms\Pages
*/
public function templateSiblings(bool $self = true)
{