public function getOwnTemplates() { if ($this->_templates == null) { $path = Template::getFilePath($this->pk); $files = FileSystem::dirFileInfo($path); $res = array(); foreach ($files as $file) $res[] = $this->getOwnTemplate($file['name']); $this->_templates = $res; } return $this->_templates; }