protected function getTemplateName()
    {
        $templateName = '';
        $templateFile = '';

        if (isset($this->ffData['templateFile'])) {
            $templateFile = $this->ffData['templateFile'];
        } elseif (isset($this->conf['defaultTemplateFileName'])) {
            $templateFile = $this->conf['defaultTemplateFileName'];
        }

        if ($templateFile === $this->conf['defaultTemplateFileName'] ||
            $templateFile === 'default') {
            $templateName = 'default';
        }

        // cutting off the file extension
        if ($templateName !== 'default') {
            $templateName = substr($templateFile, 0, strrpos($templateFile, '.'));
        }

        return $templateName;
    }
protected function getTemplateName()
    {
        $templateName = '';
        $templateFile = '';

        if (isset($this->ffData['templateFile'])) {
            $templateFile = $this->ffData['templateFile'];
        } elseif (isset($this->conf['defaultTemplateFileName'])) {
            $templateFile = $this->conf['defaultTemplateFileName'];
        }

        if ($templateFile === $this->conf['defaultTemplateFileName'] ||
            $templateFile === 'default') {
            $templateName = 'default';
        }

        // cutting off the file extension
        if ($templateName !== 'default') {
            $templateName = substr($templateFile, 0, strrpos($templateFile, '.'));
        }

        return $templateName;
    }
protected function getTemplateName ( ) { $ templateName = '' ; $ templateFile = '' ; if ( isset ( $ this -> ffData [ 'templateFile' ] ) ) { $ templateFile = $ this -> ffData [ 'templateFile' ] ; } elseif ( isset ( $ this -> conf [ 'defaultTemplateFileName' ] ) ) { $ templateFile = $ this -> conf [ 'defaultTemplateFileName' ] ; } if ( $ templateFile === $ this -> conf [ 'defaultTemplateFileName' ] || $ templateFile === 'default' ) { $ templateName = 'default' ; } // cutting off the file extension if ( $ templateName !== 'default' ) { $ templateName = substr ( $ templateFile , 0 , strrpos ( $ templateFile , '.' ) ) ; } return $ templateName ; }
gets the filename from the template file without the file extension

@return string The file name portion without the file extension
gets the filename from the template file without the file extension