26 private $conditions = [];
32 public function __construct( array $params, array $files = [] ) {
33 $this->params = $params;
34 $this->files = $files;
37 public function hasParam( $name, array $options ) {
38 return isset( $this->params[$name] );
41 public function getValue( $name, $default, array $options ) {
42 return $this->params[$name] ?? $default;
45 public function hasUpload( $name, array $options ) {
46 return isset( $this->files[$name] );
50 $file = $this->files[$name] ??
null;
53 $this->files[$name] =
$file;
62 $this->conditions[] = [
63 'message' => $message,
66 'settings' => $settings,
75 return $this->conditions;
82 $this->conditions = [];
86 return !empty( $options[
'useHighLimits'] );
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.