public static function listAllTemplates()
    {
        $fileTemplates = (array) MailManager::instance()->listRegisteredTemplates();
        $dbTemplates = (array) self::lists('code', 'code');
        $templates = $fileTemplates + $dbTemplates;
        ksort($templates);
        return $templates;
    }
public static function listAllTemplates()
    {
        $fileTemplates = (array) MailManager::instance()->listRegisteredTemplates();
        $dbTemplates = (array) self::lists('code', 'code');
        $templates = $fileTemplates + $dbTemplates;
        ksort($templates);
        return $templates;
    }
public static function listAllTemplates ( ) { $ fileTemplates = ( array ) MailManager :: instance ( ) -> listRegisteredTemplates ( ) ; $ dbTemplates = ( array ) self :: lists ( 'code' , 'code' ) ; $ templates = $ fileTemplates + $ dbTemplates ; ksort ( $ templates ) ; return $ templates ; }
Returns an array of template codes and descriptions.
@return array
Returns an array of template codes and descriptions .