/**
  * This method returns a list of hyphenation patterns, that are
  * available.
  */
 public static function getAvailableHyphenatePatterns()
 {
     if (self::$hyphenatePatterns != NULL) {
         return self::$hyphenatePatterns;
     }
     self::$hyphenatePatterns = array();
     $files = file_scan_directory(views_pdf_get_library('tcpdf') . '/hyphenate_patterns', '/.tex$/', array('nomask' => '/(\\.\\.?|CVS)$/'), 1);
     foreach ($files as $file) {
         self::$hyphenatePatterns[basename($file->uri)] = str_replace('hyph-', '', $file->name);
     }
     return self::$hyphenatePatterns;
 }
 /**
  * This method returns a list of hyphenation patterns, that are 
  * available.
  */
 public static function getAvailableHyphenatePatterns() {
   if (self::$hyphenatePatterns != NULL) {
     return self::$hyphenatePatterns;
   }
   
   self::$hyphenatePatterns = array();
   
   $files = file_scan_directory(views_pdf_get_library('tcpdf') . '/hyphenate_patterns', '.tex', array('.', '..', 'CVS'), 0, FALSE, 'filename', 0, 1);
   
   foreach ($files as $file) {
     self::$hyphenatePatterns[basename($file->filename)] = str_replace('hyph-', '', $file->name);
   }
   
   
   return self::$hyphenatePatterns;
 }