static function setFile($componentId, $name, $path)
 {
     global $pb_data;
     PBComponentData::prepare($componentId);
     if (array_key_exists($name, $pb_data['component'][$componentId])) {
         return $pb_data['component'][$componentId][$name];
     }
     $pb_data['component'][$componentId][$name] = array();
     $file = PBFile::scanDir($path);
     if (is_array($file)) {
         foreach ($file as $value) {
             $pb_data['component'][$componentId][$name][$value] = $value;
         }
     }
     return $pb_data['component'][$componentId][$name];
 }