PHP Class PressBooks\Shortcodes\Generics\Generics

Show file Open project: pressbooks/pressbooks Class Usage Examples

Public Properties

Property Type Description
$instance - Static property to hold our singleton instance

Protected Properties

Property Type Description
$shortcodes

Public Methods

Method Description
__construct ( )
getInstance ( ) Adds shortcodes based on $self->generics.
shortcodeHandler ( $atts, $content = '', $shortcode )

Method Details

__construct() public method

public __construct ( )

getInstance() static public method

Adds shortcodes based on $self->generics.
static public getInstance ( )

shortcodeHandler() public method

public shortcodeHandler ( $atts, $content = '', $shortcode )

Property Details

$instance static public property

- Static property to hold our singleton instance
static public $instance

$shortcodes protected property

protected $shortcodes