htdocs/xoops_lib/Xoops/Core/XoopsArray.php 1 location
|
@@ 78-87 (lines=10) @@
|
75 |
|
* @return mixed An attribute value, if the named attribute existed and |
76 |
|
* has been removed, otherwise NULL. |
77 |
|
*/ |
78 |
|
public function remove($name) |
79 |
|
{ |
80 |
|
$value = null; |
81 |
|
if ($this->offsetExists($name)) { |
82 |
|
$value = $this->offsetGet($name); |
83 |
|
$this->offsetUnset($name); |
84 |
|
} |
85 |
|
|
86 |
|
return $value; |
87 |
|
} |
88 |
|
|
89 |
|
/** |
90 |
|
* Remove all attributes. |
htdocs/xoops_lib/Xoops/Html/Attributes.php 1 location
|
@@ 196-205 (lines=10) @@
|
193 |
|
* @return mixed An attribute value, if the named attribute existed and |
194 |
|
* has been removed, otherwise NULL. |
195 |
|
*/ |
196 |
|
public function remove($name) |
197 |
|
{ |
198 |
|
$value = null; |
199 |
|
if ($this->offsetExists($name)) { |
200 |
|
$value = $this->offsetGet($name); |
201 |
|
$this->offsetUnset($name); |
202 |
|
} |
203 |
|
|
204 |
|
return $value; |
205 |
|
} |
206 |
|
|
207 |
|
/** |
208 |
|
* Remove all attributes. |