downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ReflectionClass::getModifiers> <ReflectionClass::getMethod
Last updated: Fri, 20 May 2011

view this page in

ReflectionClass::getMethods

(PHP 5)

ReflectionClass::getMethodsGets a list of methods

Descripción

public array ReflectionClass::getMethods ([ string $filter ] )

Gets a list of methods.

Warning

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

filter

Any combination of ReflectionMethod::IS_STATIC, ReflectionMethod::IS_PUBLIC, ReflectionMethod::IS_PROTECTED, ReflectionMethod::IS_PRIVATE, ReflectionMethod::IS_ABSTRACT, ReflectionMethod::IS_FINAL.

Valores devueltos

An array of methods.

Ver también



add a note add a note User Contributed Notes ReflectionClass::getMethods
calibhaan at gmail dot com 11-May-2010 04:57
This method return an array of ReflectionMethod;
For example:

<?php
$reflection
= new ReflectionClass('Test');
$aMethods = $reflection->getMethods();
var_dump($aMethods);
?>

Display:
array(2) {
 [0]=> &object(ReflectionMethod)#7 (2) {
  ["name"]=> string(11) "__construct"
  ["class"]=> string(9) "Test" }
 [1]=> &object(ReflectionMethod)#8 (2) {
  ["name"]=> string(3) "run"
  ["class"]=> string(9) "Test" }
}

 
show source | credits | stats | sitemap | contact | advertising | mirror sites