Lines Matching refs:class
2 Test array_map() function : object functionality - class methods as callback function
12 * 1) child class method using parent object
13 * 2) parent class method using child object
14 * 3) child class method using parent class
15 * 4) parent class method using child class
17 echo "*** Testing array_map() : class methods as callback function ***\n";
21 class ParentClass
32 class ChildClass extends ParentClass
50 echo "-- accessing parent method from child class --\n";
53 echo "-- accessing child method from parent class --\n";
56 echo "-- accessing parent method using child class object --\n";
59 echo "-- accessing child method using parent class object --\n";
65 *** Testing array_map() : class methods as callback function ***
66 -- accessing parent method from child class --
75 -- accessing child method from parent class --
77 Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have …
79 -- accessing parent method using child class object --
88 -- accessing child method using parent class object --
90 Warning: array_map() expects parameter 1 to be a valid callback, class 'ParentClass' does not have …