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]) ) {
166 return preg_replace(
"/</",
"<.", $this->array[$p_name]);
168 $a=preg_replace(
"/<script/",
"<.", $this->array[$p_name]);
169 $a=preg_replace(
"/<iframe/i",
"<.", $this->array[$p_name]);
173 return $this->array[$p_name];
180 if (!array_key_exists($p_name,$this->array))
182 throw new Exception(
"C175.".
_(
'Paramètre invalide').
"[$p_name]",
186 if (
$p_type ==
'string' && is_string($this->array[$p_name]) )
return preg_replace(
"/</",
"<.", $this->array[$p_name]);
188 $a=preg_replace(
"/<script/",
"<.", $this->array[$p_name]);
189 $a=preg_replace(
"/<iframe/i",
"<.", $this->array[$p_name]);
190 $a=preg_replace(
"/<frame/i",
"<.", $this->array[$p_name]);
193 return $this->array[$p_name];
208 function get($p_name,
$p_type=
"string", $p_default=
"")
213 if (func_num_args()==1)
215 if (func_num_args()==2)
217 if (func_num_args()==3)
220 catch (Exception $exc)
238 if (func_num_args()==1)
240 if (func_num_args()==2)
242 if (func_num_args()==3)
245 catch (Exception $exc)
262 if (func_num_args()==1)
264 if (func_num_args()==2)
266 if (func_num_args()==3)
269 catch (Exception $exc)
285 if ( $this->array ===
null ) {
286 throw new Exception(
_(
"HTTP266:array not set")) ;
288 if (func_num_args()==1)
290 if (func_num_args()==2)
292 if (func_num_args()==3)
295 catch (Exception $exc)
310 if (preg_match(
"/\[.*\]/", $p_string, $found)==1)
isDate($p_date)
Verifie qu'une date est bien formaté en d.m.y et est valable.
h( $row[ 'oa_description'])
_("actif, passif,charge,...")
if( $delta< 0) elseif( $delta==0)