_files() protected method

Returns absolute paths to files according to configuration.
protected _files ( string $category, string $locale, string $scope ) : array
$category string
$locale string
$scope string
return array
Beispiel #1
0
 protected function _files($category, $locale, $scope)
 {
     $files = parent::_files($category, $locale, $scope);
     foreach ($files as $key => $file) {
         $extension = pathinfo($file, PATHINFO_EXTENSION);
         if (!$this->mo && $extension == 'mo' || !$this->po && $extension == 'po') {
             unset($files[$key]);
         }
     }
     return $files;
 }