YaWK  24.1
Yet another WebKit
YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus Class Reference

Embed Bubbl.us Presentations on your pages. More...

Public Member Functions

 __construct ($db)
 Load all widget settings from database and fill object. More...
 
 init ()
 Embed any BubblUs mindmaps. More...
 
 printObject ()
 Print all object data. More...
 
 setProperties ()
 Set widget properties from database and fill object params. More...
 

Public Attributes

 $bubblusHeading = ''
 
 $bubblusHeadline = ''
 
 $bubblusHeight = '370'
 
 $bubblusSubtext = ''
 
 $bubblusUrl = ''
 
 $bubblusWidth = '100%'
 
 $widget = ''
 

Detailed Description

Embed Bubbl.us Presentations on your pages.

Embed any bubbl.us mindmap on your page.

Bubbl.us is a service, where you can create mindmaps and share them with your friends and the web. With this widget, you are able to embed any public Bubbl.us mindmaps. Simply enter the URL of your mindmap and a view settings. Embedding and sharing mindmaps has never been easier.

Author
Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
Version
1.0.0

Definition at line 16 of file bubblus.php.

Constructor & Destructor Documentation

◆ __construct()

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::__construct (   $db)

Load all widget settings from database and fill object.

Parameters
object$dbDatabase Object

Load all widget settings on object init.

Definition at line 38 of file bubblus.php.

40  {
41  // load this widget settings from db
42  $this->widget = new \YAWK\widget();
43  $settings = $this->widget->getWidgetSettingsArray($db);
44  foreach ($settings as $property => $value) {
45  $this->$property = $value;
46  }
if(isset($_POST['save'])) $settings
$value

References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().

Member Function Documentation

◆ init()

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::init ( )

Embed any BubblUs mindmaps.

This method does the setup and embed job

Definition at line 95 of file bubblus.php.

97  {
98  // set widget obj properties
99  $this->setProperties();
100  // draw headline, if set
101  echo "$this->bubblusHeadline";
102  // embed mindmap via iframe...
103  echo "<iframe width=\"$this->bubblusWidth\" height=\"$this->bubblusHeight\" allowfullscreen frameborder=\"0\" src=\"$this->bubblusUrl\"></iframe>";
setProperties()
Set widget properties from database and fill object params.
Definition: bubblus.php:63

References YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus\setProperties().

◆ printObject()

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::printObject ( )

Print all object data.

(for development and testing purpose)

Definition at line 52 of file bubblus.php.

54  {
55  echo "<pre>";
56  print_r($this);
57  echo "</pre>";

◆ setProperties()

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::setProperties ( )

Set widget properties from database and fill object params.

Load all widget settings.

Definition at line 63 of file bubblus.php.

65  {
66  // if a heading is set and not empty
67  if (isset($this->bubblusHeading) && (!empty($this->bubblusHeading)))
68  {
69  // if subtext is set, add <small> subtext to string
70  if (isset($this->bubblusSubtext) && (!empty($this->bubblusSubtext)))
71  { // build a headline with heading and subtext
72  $this->bubblusSubtext = "<small>$this->bubblusSubtext</small>";
73  $this->bubblusHeadline = "<div id=\"bubblusHeading\"><h1>$this->bubblusHeading&nbsp;"."$this->bubblusSubtext</h1></div>";
74  }
75  else
76  { // build just a headline - without subtext
77  $this->bubblusHeadline = "<h1>$this->bubblusHeading</h1>"; // draw just the heading
78  }
79  }
80  else
81  { // leave empty if it's not set
82  $this->bubblusHeadline = '';
83  }
84 
85  // prepare url
86  if (isset($this->bubblusUrl) && (!empty($this->bubblusUrl)))
87  { // remove trailing slash
88  $this->bubbleusUrl = rtrim("/", $this->bubblusUrl);
89  }

Referenced by YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus\init().

Member Data Documentation

◆ $bubblusHeading

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusHeading = ''
Parameters
stringHeading

Definition at line 27 of file bubblus.php.

◆ $bubblusHeadline

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusHeadline = ''
Parameters
stringHeadline HTML Markup

Definition at line 31 of file bubblus.php.

◆ $bubblusHeight

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusHeight = '370'
Parameters
stringHeight in px

Definition at line 25 of file bubblus.php.

◆ $bubblusSubtext

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusSubtext = ''
Parameters
stringSubtext

Definition at line 29 of file bubblus.php.

◆ $bubblusUrl

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusUrl = ''
Parameters
stringURL of your bubblus presentation

Definition at line 21 of file bubblus.php.

◆ $bubblusWidth

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$bubblusWidth = '100%'
Parameters
stringWidth in percent

Definition at line 23 of file bubblus.php.

◆ $widget

YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus::$widget = ''
Parameters
objectglobal widget object data

Definition at line 19 of file bubblus.php.


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