git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
One more fix for issue #55
[plcapi.git]
/
src
/
Value.php
diff --git
a/src/Value.php
b/src/Value.php
index
ae73aaa
..
f51579b
100644
(file)
--- a/
src/Value.php
+++ b/
src/Value.php
@@
-350,6
+350,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function structmemexists($key)
{
*/
public function structmemexists($key)
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
return array_key_exists($key, $this->me['struct']);
}
return array_key_exists($key, $this->me['struct']);
}
@@
-365,6
+367,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function structmem($key)
{
*/
public function structmem($key)
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
return $this->me['struct'][$key];
}
return $this->me['struct'][$key];
}
@@
-374,6
+378,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function structreset()
{
*/
public function structreset()
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
reset($this->me['struct']);
}
reset($this->me['struct']);
}
@@
-386,7
+392,9
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function structeach()
{
*/
public function structeach()
{
- return each($this->me['struct']);
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
+ return @each($this->me['struct']);
}
/**
}
/**
@@
-430,6
+438,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function arraymem($key)
{
*/
public function arraymem($key)
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
return $this->me['array'][$key];
}
return $this->me['array'][$key];
}
@@
-442,6
+452,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function arraysize()
{
*/
public function arraysize()
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
return count($this->me['array']);
}
return count($this->me['array']);
}
@@
-454,6
+466,8
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*/
public function structsize()
{
*/
public function structsize()
{
+ //trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED);
+
return count($this->me['struct']);
}
return count($this->me['struct']);
}