function addWidget($region, $widget, $priority = 0)
    {
        if (!$this->rBoxContainer) {
            $sm = $this->getServiceLocator()->getServiceLocator();
            $rBoxContainer  = $sm->get('yimaWidgetator.Widgetizer.Container');

            $this->rBoxContainer = $rBoxContainer;
        }

        $this->rBoxContainer->addWidget($region, $widget, $priority);

        return $this;
    }
function addWidget($region, $widget, $priority = 0)
    {
        if (!$this->rBoxContainer) {
            $sm = $this->getServiceLocator()->getServiceLocator();
            $rBoxContainer  = $sm->get('yimaWidgetator.Widgetizer.Container');

            $this->rBoxContainer = $rBoxContainer;
        }

        $this->rBoxContainer->addWidget($region, $widget, $priority);

        return $this;
    }
function addWidget ( $ region , $ widget , $ priority = 0 ) { if ( ! $ this -> rBoxContainer ) { $ sm = $ this -> getServiceLocator ( ) -> getServiceLocator ( ) ; $ rBoxContainer = $ sm -> get ( 'yimaWidgetator.Widgetizer.Container' ) ; $ this -> rBoxContainer = $ rBoxContainer ; } $ this -> rBoxContainer -> addWidget ( $ region , $ widget , $ priority ) ; return $ this ; }
Add Widget To Region Box Container

@param $region
@param $widget
@param int $priority

@return $this
Add Widget To Region Box Container