public static function getTemplatePath(){
        if(empty(self::$templatesPath)){
            $dir = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem')->getDir();
            self::$templatesPath = $dir.'model/qti/templates/';
        }
        $returnValue = self::$templatesPath;

        return (string) $returnValue;
    }
public static function getTemplatePath(){
        if(empty(self::$templatesPath)){
            $dir = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiItem')->getDir();
            self::$templatesPath = $dir.'model/qti/templates/';
        }
        $returnValue = self::$templatesPath;

        return (string) $returnValue;
    }
public static function getTemplatePath ( ) { if ( empty ( self :: $ templatesPath ) ) { $ dir = \ common_ext_ExtensionsManager :: singleton ( ) -> getExtensionById ( 'taoQtiItem' ) -> getDir ( ) ; self :: $ templatesPath = $ dir . 'model/qti/templates/' ; } $ returnValue = self :: $ templatesPath ; return ( string ) $ returnValue ; }
Get the main template directory

@access public
@author Sam, <sam@taotesting.com>
@return string
Get the main template directory