Documentation

MCI_Footnotes_WidgetBase extends WP_Widget

Base Class for all Plugin Widgets. Registers each Widget to WordPress.

The following Methods MUST be overwritten in each sub class: public function widget($args, $instance) -> echo the Widget Content public function form($instance) -> echo the Settings of the Widget

Tags
author

Stefan Herndler

since
1.5.0

Table of Contents

__construct()  : mixed
Class Constructor. Registers the child Widget to WordPress.
getDescription()  : string
Returns the Description of the child widget.
getID()  : string
Returns an unique ID as string used for the Widget Base ID.
getName()  : string
Returns the Public name of child Widget to be displayed in the Configuration page.
getWidgetWidth()  : int
Returns the width of the Widget. Default width is 250 pixel.

Methods

getDescription()

Returns the Description of the child widget.

protected abstract getDescription() : string
Tags
author

Stefan Herndler

since
1.5.0
Return values
string

getID()

Returns an unique ID as string used for the Widget Base ID.

protected abstract getID() : string
Tags
author

Stefan Herndler

since
1.5.0
Return values
string

getName()

Returns the Public name of child Widget to be displayed in the Configuration page.

protected abstract getName() : string
Tags
author

Stefan Herndler

since
1.5.0
Return values
string

getWidgetWidth()

Returns the width of the Widget. Default width is 250 pixel.

protected getWidgetWidth() : int
Tags
author

Stefan Herndler

since
1.5.0
Return values
int

Search results