CampURI::isValidTemplate PHP Method

isValidTemplate() protected method

Returns whether the template name given is a valid template resource.
protected isValidTemplate ( string $p_templateName ) : boolean
$p_templateName string The name of the template from the URI path
return boolean true on success, false on failure
    protected function isValidTemplate($p_templateName)
    {
        if (is_null($this->m_issue) || !$this->m_issue->defined()) {
            return false;
        }
        $resourceId = new ResourceId(__CLASS__);
        $syncResService = $resourceId->getService(ISyncResourceService::NAME);
        return !is_null($syncResService->findByPath($this->getThemePath() . $p_templateName));
    }