Menu

[r13]: / e9-core / request.class.php  Maximize  Restore  History

Download this file

47 lines (38 with data), 830 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
class e_request
{
private $node, $query_string, $full_request;
function __construct( $array )
{
if ( isset( $array['node'] ) )
$this->set_node( $array['node'] );
else
$this->set_node( 'index' );
if ( isset( $array['query_string'] ) )
$this->set_query_string( $array['query_string'] );
}
public function get_node()
{
return $this->node;
}
public function set_node( $str )
{
$this->node = e_format::sanitize_input( $str );
}
public function get_query_string()
{
return $this->query_string;
}
public function set_query_string( $str )
{
$this->query_string = e_format::sanitize_input( $str );
}
public function get_full_request()
{
if ( $this->get_query_string() )
return $this->get_node() . '?' . $this->get_query_string();
else
return $this->get_node();
}
};
?>