PHP Class PressBooks\Shortcodes\Wikipublisher\Glyphs

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
$supported_languages ISO-639-3

Public Methods

Method Description
getInstance ( ) : Glyphs Function to instantiate our class and make it a singleton
lang_shortcode ( $atts, null $content = null ) : string

Private Methods

Method Description
__construct ( ) Setup the [pb_language] shortcode, which is private to force the use of getInstance()
greek ( $text, string $lang = 'grc' ) : string
hebrew ( $text ) : string

Method Details

getInstance() public static method

Function to instantiate our class and make it a singleton
Deprecation:
public static getInstance ( ) : Glyphs
return Glyphs

lang_shortcode() public method

public lang_shortcode ( $atts, null $content = null ) : string
$atts
$content null
return string

Property Details

$instance static public property

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

$supported_languages protected property

ISO-639-3
protected $supported_languages