mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes #191
This commit is contained in:
parent
394075041c
commit
2bc02a7488
@ -62,6 +62,19 @@ class CmsObjectQuery
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds a single Cms Object by its file name
|
||||
* @param string $fileName
|
||||
* @return CmsObject
|
||||
*/
|
||||
public function find($fileName)
|
||||
{
|
||||
if ($this->useCache)
|
||||
return forward_static_call($this->cmsObject, 'loadCached', $this->theme, $fileName);
|
||||
else
|
||||
return forward_static_call($this->cmsObject, 'load', $this->theme, $fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all CMS objects for the set theme
|
||||
* @return CmsObjectCollection
|
||||
|
Loading…
x
Reference in New Issue
Block a user