Name

IsDef —

Synopsis

boolean IsDef(className,  
 allTypes); 
string  className;
boolean  allTypes;

Description

static method used to check if a class is defined

Parameters

className

the name of the class you want to check for existence

allTypes

if true check also if, generally, an extension exists with that name. Note that an extension declaring only functions doesn't exist as a class, so this is the only way to check for them.

Returns

true if the class exists, false otherwise