Widget_Model Class Reference

Data model class for widgets. More...

Inheritance diagram for Widget_Model:
Object_Model BaseObject_Model BaseDashboard_Widget_Model BaseNinja_Widget_Model Dashboard_Widget_Model Ninja_Widget_Model

Public Member Functions

 __construct ($initial=false)
 Build a ninja widget model.
 build ()
 Generate a widget given the current configuration May return a Dead_Widget, in case the generated widget failed to instantiate.
 widget_path ()
 Widget path.
 __get ($var)
 Access parameters in old style.

Protected Attributes

 $widget_path_cache = NULL
 Cache for widget path.

Detailed Description

Data model class for widgets.


Member Function Documentation

Widget_Model::__get ( var  ) 

Access parameters in old style.

This is deprecated

Widget_Model::build (  ) 

Generate a widget given the current configuration May return a Dead_Widget, in case the generated widget failed to instantiate.

Returns:
widget_Base
Widget_Model::widget_path (  ) 

Widget path.

Returns:
string
Exceptions:
Exception When widget with the current name does not seem to be installed.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1