Image_Graph_Common &addNew(
string
$class, [mixed
$params = null], [mixed
$additional = false])
|
|
Creates an object from the class and adds it to the objects element list.
Creates an object from the class specified and adds it to the objects element list. If only one parameter is required for the constructor of the class simply pass this parameter as the $params parameter, unless the parameter is an array or a reference to a value, in that case you must 'enclose' the parameter in an array. Similar if the constructor takes more than one parameter specify the parameters in an array.
Parameters: