mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Add function to check data
This commit is contained in:
parent
86e8ae40de
commit
b6ea99b75c
|
|
@ -104,6 +104,20 @@ class View extends ViewAbstract
|
|||
$this->l11n = $response !== null ? $response->getHeader()->getL11n() : new Localization();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if data exists
|
||||
*
|
||||
* @param string $id Data Id
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function hasData(string $id) : bool
|
||||
{
|
||||
return isset($this->data[$id]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get data attached to view
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user