Jelajahi Sumber

System update (API)

markseu 9 tahun lalu
induk
melakukan
e67ef7673c
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      system/plugins/core.php

+ 5 - 0
system/plugins/core.php

@@ -974,23 +974,28 @@ class YellowDataCollection extends ArrayObject
 		parent::__construct(array());
 	}
 	
+	// Return array element
 	function offsetGet($key)
 	{
 		if(is_string($key)) $key = lcfirst($key);
 		return parent::offsetGet($key);
 	}
 	
+	// Set array element
 	function offsetSet($key, $value)
 	{
 		if(is_string($key)) $key = lcfirst($key);
 		parent::offsetSet($key, $value);
 	}
+	
+	// Remove array element
 	function offsetUnset($key)
 	{
 		if(is_string($key)) $key = lcfirst($key);
 		parent::offsetUnset($key);
 	}
 	
+	// Check if array element exists
 	function offsetExists($key)
 	{
 		if(is_string($key)) $key = lcfirst($key);