@@ 50-62 (lines=13) @@ | ||
47 | ||
48 | public function get($uid = null) { |
|
49 | ||
50 | if ( is_null($uid) ) { |
|
51 | ||
52 | return $this->requests; |
|
53 | ||
54 | } else if ( $key = $this->searchByUid($uid) != null ) { |
|
55 | ||
56 | return $this->requests[$key]; |
|
57 | ||
58 | } else { |
|
59 | ||
60 | return null; |
|
61 | ||
62 | } |
|
63 | ||
64 | } |
|
65 | ||
@@ 74-84 (lines=11) @@ | ||
71 | ||
72 | return true; |
|
73 | ||
74 | } else if ( $key = $this->searchByUid($uid) != null ) { |
|
75 | ||
76 | unset($this->requests[$key]); |
|
77 | ||
78 | return true; |
|
79 | ||
80 | } else { |
|
81 | ||
82 | return false; |
|
83 | ||
84 | } |
|
85 | ||
86 | } |
|
87 |