Xinc-Gui-Widget
[ class tree: Xinc-Gui-Widget ] [ index: Xinc-Gui-Widget ] [ all elements ]

Class: Xinc_Gui_Widget_Repository

Source Location: /Xinc/Gui/Widget/Repository.php

Class Overview


The Widget-Repository allows the Web-Frontend of Xinc to choose the right plugin for execution based on the Http-Request


Author(s):

  • Arno Schneider

Version:

  • 2.0

Methods



Class Details

[line 44]
The Widget-Repository allows the Web-Frontend of Xinc to choose the right plugin for execution based on the Http-Request



Tags:

author:  Arno Schneider
version:  2.0
since:  Class available since Release 2.0
license:  GNU/LGPL, see license.php


[ Top ]


Class Methods


static method getInstance [line 70]

static Xinc_Gui_Widget_Repository getInstance( )

Return an instance of the Widget Repository



Tags:

access:  public


[ Top ]

method getWidgetByClassName [line 117]

Xinc_Gui_Widget_Interface &getWidgetByClassName( string $name)

Gets a registered widget by its classname



Tags:

return:  or null
throws:  Xinc_Gui_Widget_Exception_NotFound
access:  public


Parameters:

string   $name  

[ Top ]

method getWidgetForPath [line 133]

Xinc_Gui_Widget_Interface &getWidgetForPath( String $path)

Determines the Widget that should be used for the specified Http-Request by the Pathname that is called



Tags:

access:  public


Parameters:

String   $path   Pathname of the HTTP-Request

[ Top ]

method getWidgets [line 161]

Xinc_Gui_Widget_Interface[] getWidgets( )

Returns all the registered Widgets



Tags:

access:  public


[ Top ]

method registerWidget [line 83]

void registerWidget( Xinc_Gui_Widget_Interface &$widget, Xinc_Gui_Widget_Interface $widget)

Register a widget with the Repository



Tags:

access:  public


Parameters:

Xinc_Gui_Widget_Interface   $widget  
Xinc_Gui_Widget_Interface   &$widget  

[ Top ]


Documentation generated on Sun, 09 Dec 2012 21:49:32 +0100 by phpDocumentor 1.4.4