JDataSet::__call
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.
Signature
public function __call(string
$method,
array
$arguments )
Parameters
-
$method
- The name of the method called.
-
$arguments
- The arguments of the method called.
Returns
- array
- An array of values returned by the methods called on the objects in the data set.