50 return "http_input".var_export($this,
true);
96 if (trim($this->array[$p_name]) ==
"")
101 if (
isNumber($this->array[$p_name])==0 )
103 throw new Exception(_(
"Type invalide").
"[ $p_name ] = {$this->array[$p_name]}"
106 $this->array[$p_name]=
h($this->array[$p_name]);
111 if (trim($this->array[$p_name]) ==
"" )
115 if (
isDate($this->array[$p_name]) <> $this->array[$p_name])
117 throw new Exception(_(
"Type invalide").
"[ $p_name ] = {$this->array[$p_name]}"
120 $this->array[$p_name]=
h($this->array[$p_name]);
127 if ( empty($this->array[$p_name]) )
131 if (!is_array($this->array[$p_name]) ) {
132 throw new Exception(_(
"Type invalide").
"[ $p_name ] = {$this->array[$p_name]}"
135 if (is_string($this->array )) {
136 $this->array[$p_name]=
h($this->array[$p_name]);
139 throw new Exception(_(
"Unknown type"));
142 catch (Exception
$ex)
160 if (func_num_args()==3)
162 if (array_key_exists($p_name,$this->array) )
165 if (
$p_type !=
'raw' && is_string($this->array[$p_name]) )
return preg_replace(
"/</",
"< ", $this->array[$p_name]);
166 return $this->array[$p_name];
173 if (!array_key_exists($p_name,$this->array))
175 throw new Exception(_(
'Paramètre invalide').
"[$p_name]",
179 if ( is_string($this->array[$p_name]) )
return preg_replace(
"/</",
"< ", $this->array[$p_name]);
180 return $this->array[$p_name];
195 function get($p_name,
$p_type=
"string", $p_default=
"")
200 if (func_num_args()==1)
202 if (func_num_args()==2)
204 if (func_num_args()==3)
207 catch (Exception $exc)
225 if (func_num_args()==1)
227 if (func_num_args()==2)
229 if (func_num_args()==3)
232 catch (Exception $exc)
249 if (func_num_args()==1)
251 if (func_num_args()==2)
253 if (func_num_args()==3)
256 catch (Exception $exc)
272 if ( $this->array ===
null ) {
273 throw new Exception( _(
"HTTP266:array not set")) ;
275 if (func_num_args()==1)
277 if (func_num_args()==2)
279 if (func_num_args()==3)
282 catch (Exception $exc)
297 if (preg_match(
"/\[.*\]/", $p_string, $found)==1)
h( $row[ 'oa_description'])