As an extension to onesimus's code below for finding inherited methods, in PHP 5 you can use the Reflection API to find which of these are overriden.
e.g.
<?php
function get_overriden_methods($class)
{
$rClass = new ReflectionClass($class);
$array = NULL;
foreach ($rClass->getMethods() as $rMethod)
{
try
{
// attempt to find method in parent class
new ReflectionMethod($rClass->getParentClass()->getName(),
$rMethod->getName());
// check whether method is explicitly defined in this class
if ($rMethod->getDeclaringClass()->getName()
== $rClass->getName())
{
// if so, then it is overriden, so add to array
$array[] .= $rMethod->getName();
}
}
catch (exception $e)
{ /* was not in parent class! */ }
}
return $array;
}
?>
class_exists