PHP Class/Object Functions

EditRocket provides the following information on Class/Object functions in the PHP source code builder.

mixed call_user_method ( string $method_name , object &$obj [, mixed $parameter [, mixed $... ]] ) - The call_user_method() function is deprecated as of PHP 4.1.

mixed call_user_method_array ( string $method_name , object &$obj , array $paramarr ) - The call_user_method_array() function is deprecated as of PHP 4.1.

bool class_exists ( string $class_name [, bool $autoload ] ) - This function checks whether or not the given class has been defined.

string get_class ([ object $object ] ) - Gets the name of the class of the given object.

array get_class_methods ( mixed $class_name ) - Gets the class methods names.

array get_class_vars ( string $class_name ) - Get the default properties of the given class.

array get_declared_classes ( void ) - Gets the declared classes.

array get_declared_interfaces ( void ) - Gets the declared interfaces.

array get_object_vars ( object $object ) - Gets the properties of the given object.

string get_parent_class ([ mixed $object ] ) - Retrieves the parent class name for object or class.

bool interface_exists ( string $interface_name [, bool $autoload ] ) - Checks if the given interface has been defined.

bool is_a ( object $object , string $class_name ) - Checks if the given object is of this class or has this class as one of its parents.

bool is_subclass_of ( mixed $object , string $class_name ) - Checks if the given object has the class class_name as one of its parents.

bool method_exists ( object $object , string $method_name ) - Checks if the class method exists in the given object.

bool property_exists ( mixed $class , string $property ) - This function checks if the given property exists in the specified class (and if it is accessible from the current scope).