Create objects for commonly used classes.
Theoretically, this should save time in loading classes using include() statements and, perhaps, memory
by not having multiple instances of the same object (NB PHP5 creates references automatically with new).
Many WIKINDX classes have busy __construct() methods (initializing arrays etc.). Using FACTORY ensures that
this work is only done once each time the web server deals with a script -- subsequent class instantiations
in the same server call return only the already constructed object.
e.g. To call the FACTORY SESSION object:
$this->session = FACTORY_SESSION::getInstance();
Summary
MethodsPropertiesConstantsgetInstance() No public properties foundNo constants foundNo protected methods foundNo protected properties foundN/ANo private methods foundNo private properties foundN/A
Methods
getInstance()
getInstance( imgMagickPath = FALSE) :
Get instance
Parameters
imgMagickPath
Default is FALSE in which case, RICHTEXTFORMAT() tries to pick it up from the word processor plugin config.php file