mirror of
https://github.com/getgrav/grav.git
synced 2026-03-18 02:21:11 +01:00
Removed old deprecated methods
This commit is contained in:
@@ -1180,73 +1180,6 @@ class Page
|
||||
return $children;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function count()
|
||||
{
|
||||
throw new \Exception('Use $page->children()->count() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
throw new \Exception('Use $page->children()->__get() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
* @param $value
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function __set($key, $value)
|
||||
{
|
||||
throw new \Exception('Use $page->children()->__set() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function current()
|
||||
{
|
||||
throw new \Exception('Use $page->children()->current() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function next()
|
||||
{
|
||||
throw new \Exception('Use $page->children()->next() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function prev()
|
||||
{
|
||||
throw new \Exception('Use $page->children()->prev() instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @throws \Exception
|
||||
* @deprecated
|
||||
*/
|
||||
public function nth($key)
|
||||
{
|
||||
throw new \Exception('Use $page->children()->nth($position) instead.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if this item is the first in an array of sub-pages.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user