C# Class Pchp.Library.Objects

Mostrar archivo Open project: iolevel/peachpie

Public Methods

Method Description
class_exists ( Context ctx, string className, bool autoload = true ) : bool

Tests whether a given class is defined.

interface_exists ( Context ctx, string ifaceName, bool autoload = true ) : bool

Tests whether a given interface is defined.

Method Details

class_exists() public static method

Tests whether a given class is defined.
public static class_exists ( Context ctx, string className, bool autoload = true ) : bool
ctx Pchp.Core.Context Current runtime context.
className string The name of the class.
autoload bool Whether to attempt to call __autoload.
return bool

interface_exists() public static method

Tests whether a given interface is defined.
public static interface_exists ( Context ctx, string ifaceName, bool autoload = true ) : bool
ctx Pchp.Core.Context Current runtime context.
ifaceName string The name of the interface.
autoload bool Whether to attempt to call __autoload.
return bool