YaWK
24.1
Yet another WebKit
|
Example Widget (empty) for DEMO and development purpose! More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
init () | |
Init example widget and call a function for demo purpose. More... | |
printObject () | |
Print all object data. More... | |
showHeading () | |
![]() | |
getHeading ($heading, $subtext) | |
Get widget heading and subtext, return headline. More... | |
getWidgetSettingsArray ($db) | |
Get widget settings and return it as array. More... | |
Public Attributes | |
$exampleHeading = '' | |
$exampleSubtext = '' | |
$widget = '' | |
![]() | |
$data | |
$date_publish | |
$date_unpublish | |
$folder | |
$id | |
$marginBottom | |
$marginTop | |
$name | |
$pageID | |
$position | |
$published | |
$sort | |
$widgetTitle | |
$widgetType | |
Additional Inherited Members | |
![]() | |
static | getAllSettingsIntoArray ($db, $widgetID) |
Returns an array with all widget settings data. More... | |
static | getAllWidgetTypes ($db) |
Return all widget types as associative array. More... | |
static | getCurrentWidgetPath ($db) |
return current widget path More... | |
static | getFacebookLikeBox () |
return the facebook likebox widget More... | |
static | getLoginBox () |
return the user login box widget More... | |
static | loadWidgetsOfPage ($db, $page) |
Returns an array of all widgets that are linked with given page->id. More... | |
Example Widget (empty) for DEMO and development purpose!
Empty Example Widget - for development and demo purpose
This widget is (nearly) empty. It can be used to understand the logic behind YaWK's widget system and/or is a great base to start and create your very own widget! Simply add the properties your application needs, add the database, build your own functions and your widget is ready to run the code as you need it.
Definition at line 17 of file example.php.
YAWK\WIDGETS\EXAMPLE\DEMO\example::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 31 of file example.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\EXAMPLE\DEMO\example::init | ( | ) |
Init example widget and call a function for demo purpose.
Example Widget Init
Definition at line 56 of file example.php.
References YAWK\WIDGETS\EXAMPLE\DEMO\example\showHeading().
YAWK\WIDGETS\EXAMPLE\DEMO\example::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Reimplemented from YAWK\widget.
Definition at line 45 of file example.php.
YAWK\WIDGETS\EXAMPLE\DEMO\example::showHeading | ( | ) |
Definition at line 69 of file example.php.
References YAWK\widget\getHeading().
Referenced by YAWK\WIDGETS\EXAMPLE\DEMO\example\init().
YAWK\WIDGETS\EXAMPLE\DEMO\example::$exampleHeading = '' |
string | Title that will be shown above widget |
Definition at line 22 of file example.php.
YAWK\WIDGETS\EXAMPLE\DEMO\example::$exampleSubtext = '' |
string | Subtext will be displayed beside title |
Definition at line 24 of file example.php.
YAWK\WIDGETS\EXAMPLE\DEMO\example::$widget = '' |
object | global widget object data |
Definition at line 20 of file example.php.