GetWidgetsByContext() public static method

Get widgets by context.
public static GetWidgetsByContext ( IWidgetContext $context ) : array
$context IWidgetContext
return array of IWidget
Example #1
0
 /**
  * Get context widgets
  * @return array of IWidget
  */
 public function getWidgets()
 {
     if ($this->widgets === NULL) {
         $this->widgets = WidgetManager::GetWidgetsByContext($this);
     }
     return $this->widgets;
 }