note 43379 added to function.get-class-methods

From: Date: Sat, 19 Jun 2004 06:32:43 +0000
Subject: note 43379 added to function.get-class-methods
Groups: php.notes 
Request: Send a blank email to php-notes+get-71316@lists.php.net to get a copy of this message
This function will return only the methods for the object you indicate. It will strip out the inherited methods. function get_this_class_methods($class){ $array1 = get_class_methods($class); if($parent_class = get_parent_class($class)){ $array2 = get_class_methods($parent_class); $array3 = array_diff($array1, $array2); }else{ $array3 = $array1; } return($array3); } ---- Manual Page -- http://www.php.net/manual/en/function.get-class-methods.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43379 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43379&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43379&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71316) next »