Captcha and Contact Us Forms for Wordpress 0.0.1
Plugin to add captcha to core wordpress forms and additional option for contact us page.
SingletonParent Class Reference

Parent class to initiate and return singleton instances for any subclass.
. More...

Inheritance diagram for SingletonParent:
ContactusController OSOLmulticaptcha ContactusHelper Admin Common Frontend ContactusView

Static Public Member Functions

static getInstance ()
 Static method facilitating Singleton Constructor. More...
 

Static Protected Attributes

static $instances = array()
 

Detailed Description

Parent class to initiate and return singleton instances for any subclass.
.

This documentation is written in OSOLCCC::SingletonParent under class tag
And will be shown in Main Project >> Data Structures >> Nampespace >> thisClassName

Which ever class needs to be made singleton may subclass it

Usage:
//assuming class OSOLCCC::ExtraClasses::OSOLmulticaptcha extends SingletonParent
static getInstance()
Static method facilitating Singleton Constructor.
Definition: SingletonParent.php:110
Author
Sreekanth Dayanand
Outsource Online Internet Solutions
Version
0.0.1
Date
2022-2032
Precondition
  1. PHP 7+ is required
  2. If not autoloaded, Class Files must be explicitly included
Bug:
No bugs found till July,2022.
Warning

To generate documentation of this class. Make sure you do the following
  1. Documentation for namespace Nampespace of this class should be made prior to documenting this class
  2. The class should be declared in lower case ie **class** and not `Class

Member Function Documentation

◆ getInstance()

static getInstance ( )
static

Static method facilitating Singleton Constructor.

Parameters
noneno input parameter
Returns
ClassInstance
Warning
  1. function __construct() of subclasses should be protected
  2. Never call Class::getInstance() in another class's constructor, that instance will be discarded from $instances array
Detailed Description:
This method initiates & returns a singleton intstance of this class or any of its sub classes

The documentation for this class was generated from the following file: