Prado\Web\UI\WebControls\TMultiView::getActiveView PHP 메소드

getActiveView() 공개 메소드

public getActiveView ( ) : TView
리턴 TView the currently active view, null if no active view
    public function getActiveView()
    {
        $index = $this->getActiveViewIndex();
        $views = $this->getViews();
        if ($index >= $views->getCount()) {
            throw new TInvalidDataValueException('multiview_activeviewindex_invalid', $index);
        }
        if ($index < 0) {
            return null;
        }
        $view = $views->itemAt($index);
        if (!$view->getActive()) {
            $this->activateView($view, false);
        }
        return $view;
    }