public function getHooks($class)
    {
        $hooks = array();

        foreach (get_class_methods($class) as $method) {
            if (strpos($method, 'hook') === 0) {
                $hooks[] = $method;
            }
        }

        return $hooks;
    }
public function getHooks($class)
    {
        $hooks = array();

        foreach (get_class_methods($class) as $method) {
            if (strpos($method, 'hook') === 0) {
                $hooks[] = $method;
            }
        }

        return $hooks;
    }
public function getHooks ( $ class ) { $ hooks = array ( ) ; foreach ( get_class_methods ( $ class ) as $ method ) { if ( strpos ( $ method , 'hook' ) === 0 ) { $ hooks [ ] = $ method ; } } return $ hooks ; }
Returns an array of class methods which are hooks
@param object|string $class
@return array
Returns an array of class methods which are hooks