[limb-svn] r7100 - 3.x/trunk/limb/net/src
svn at limb-project.com
svn at limb-project.com
Wed Jul 9 01:12:39 MSD 2008
Author: pachanga
Date: 2008-07-09 01:12:39 +0400 (Wed, 09 Jul 2008)
New Revision: 7100
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7100
Modified:
3.x/trunk/limb/net/src/lmbHttpRequest.class.php
Log:
-- coding style fixes
Modified: 3.x/trunk/limb/net/src/lmbHttpRequest.class.php
===================================================================
--- 3.x/trunk/limb/net/src/lmbHttpRequest.class.php 2008-07-08 21:12:07 UTC (rev 7099)
+++ 3.x/trunk/limb/net/src/lmbHttpRequest.class.php 2008-07-08 21:12:39 UTC (rev 7100)
@@ -19,7 +19,6 @@
*/
class lmbHttpRequest extends lmbSet
{
-
const get = 'get';
const uri = 'uri';
const post = 'post';
@@ -62,6 +61,7 @@
$this->request = lmbArrayHelper :: arrayMerge($this->get, $this->post, $this->files);
+ //TODO: think about potential risk of overwriting system attributes!
foreach($this->request as $k => $v)
$this->set($k, $v);
}
@@ -151,17 +151,17 @@
return $this->$var;
$arr = $this->$var;
- if (is_array($key)) {
- $ret = array();
- foreach($key as $item) {
- $ret[$item] = (isset($arr[$item])?$arr[$item]:null);
- }
- return $ret;
- } elseif(isset($arr[$key])) {
+ if(is_array($key))
+ {
+ $ret = array();
+ foreach($key as $item)
+ $ret[$item] = (isset($arr[$item]) ? $arr[$item] : null);
+ return $ret;
+ }
+ elseif(isset($arr[$key]))
return $arr[$key];
- } elseif ($default != LIMB_UNDEFINED) {
+ elseif($default != LIMB_UNDEFINED)
return $default;
- }
}
function getUri()
More information about the limb-svn
mailing list