Implements interfaces:
JDataSet is a collection class that allows the developer to operate on a set of JData objects as if they were in a typical PHP array.
Located in /libraries/joomla/data/set.php (line 20)
The class constructor.
Gets the number of data objects in the set.
Dumps the data object in the set, recursively if appropriate.
Gets the data set in a form that can be serialised to JSON format.
Note that this method will not return an associative array, otherwise it would be encoded into an object. JSON decoders do not consistently maintain the order of associative keys, whereas they do maintain the order of arrays.
Gets the key of the current object in the iterator.
Gets the array of keys for all the objects in the iterator (emulates array_keys).
Advances the iterator to the next object in the iterator.
Checks whether an offset exists in the iterator.
Gets an offset in the iterator.
Sets an offset in the iterator.
Unsets an offset in the iterator.
Rewinds the iterator to the first object.
The magic call method is used to call object methods using the iterator.
Example: $array = $objectList->foo('bar');
The object list will iterate over its objects and see if each object has a callable 'foo' method. If so, it will pass the argument list and assemble any return values. If an object does not have a callable method no return value is recorded. The keys of the objects and the result array are maintained.
The magic get method is used to get a list of properties from the objects in the data set.
Example: $array = $dataSet->foo;
This will return a column of the values of the 'foo' property in all the objects (or values determined by custom property setters in the individual JData's). The result array will contain an entry for each object in the list (compared to __call which may not). The keys of the objects and the result array are maintained.
The magic isset method is used to check the state of an object property using the iterator.
Example: $array = isset($objectList->foo);
The magic set method is used to set an object property using the iterator.
Example: $objectList->foo = 'bar';
This will set the 'foo' property to 'bar' in all of the objects (or a value determined by custom property setters in the JData).
The magic unset method is used to unset an object property using the iterator.
Example: unset($objectList->foo);
This will unset all of the 'foo' properties in the list of JData's.
Documentation generated on Tue, 19 Nov 2013 15:12:56 +0100 by phpDocumentor 1.4.3