Esempio n. 1
0
 /**
  * Returns a list of file kinds.
  *
  * @return array
  */
 public function getFileKinds()
 {
     return IOHelper::getFileKinds();
 }
Esempio n. 2
0
 /**
  * Get a list of allowed extensions for a list of file kinds.
  *
  * @param array $allowedKinds
  *
  * @return array
  */
 private function _getAllowedExtensions($allowedKinds)
 {
     if (!is_array($allowedKinds)) {
         return array();
     }
     $extensions = array();
     $allKinds = IOHelper::getFileKinds();
     foreach ($allowedKinds as $allowedKind) {
         $extensions = array_merge($extensions, $allKinds[$allowedKind]['extensions']);
     }
     return $extensions;
 }