AdminPageFramework_View__PageRenderer::render PHP Метод

render() публичный Метод

public render ( )
    public function render()
    {
        $_sPageSlug = $this->sPageSlug;
        $_sTabSlug = $this->sTabSlug;
        $this->addAndDoActions($this->oFactory, $this->getFilterArrayByPrefix('do_before_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, true), $this->oFactory);
        ?>
        <div class="<?php 
        echo esc_attr($this->oFactory->oProp->sWrapperClassAttribute);
        ?>
">
            <?php 
        echo $this->_getContentTop();
        ?>
            <div class="admin-page-framework-container">    
                <?php 
        $this->addAndDoActions($this->oFactory, $this->getFilterArrayByPrefix('do_form_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, true), $this->oFactory);
        $this->_printFormOpeningTag($this->oFactory->oProp->bEnableForm);
        ?>
                <div id="poststuff">
                    <div id="post-body" class="metabox-holder columns-<?php 
        echo $this->_getNumberOfColumns();
        ?>
">
                    <?php 
        $this->_printMainPageContent($_sPageSlug, $_sTabSlug);
        $this->_printPageMetaBoxes();
        ?>
     
                    </div><!-- #post-body -->    
                </div><!-- #poststuff -->
                
            <?php 
        echo $this->_printFormClosingTag($_sPageSlug, $_sTabSlug, $this->oFactory->oProp->bEnableForm);
        ?>
            </div><!-- .admin-page-framework-container -->
                
            <?php 
        echo $this->addAndApplyFilters($this->oFactory, $this->getFilterArrayByPrefix('content_bottom_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, false), '');
        ?>
        </div><!-- .wrap -->
        <?php 
        $this->addAndDoActions($this->oFactory, $this->getFilterArrayByPrefix('do_after_', $this->oFactory->oProp->sClassName, $_sPageSlug, $_sTabSlug, true), $this->oFactory);
    }

Usage Example

 protected function _renderPage($sPageSlug, $sTabSlug = null)
 {
     $_oPageRenderer = new AdminPageFramework_View__PageRenderer($this, $sPageSlug, $sTabSlug);
     $_oPageRenderer->render();
 }