Example #1
0
	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;
	}