This commit is contained in:
Sam Georges 2014-05-30 21:50:28 +10:00
parent 394075041c
commit 2bc02a7488

View File

@ -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