src/Easy/ViewRenderer.php
static public function buildTemplateAttributes($webPage)
    {
        // Assocative Array to hold all Template Values
        // Fill with default viewobj attributes
        //$tplAttributes = $viewObj->outputAttrs();
        //Not sure what this is doing...
        $newClntObjs = '';

        //Fill other direct view variables
        $tplAttributes["module"] = $webPage->getModuleName($webPage->objectName);
        $tplAttributes["description"] = $webPage->objectDescription;
        $tplAttributes["keywords"] = $webPage->keywords;
        
        if (isset($webPage->tiles)) {
            foreach ($webPage->tiles as $tname => $tile) {
                // renderForms() : BEGIN
                foreach ($tile as $formRef) {
                    if ($formRef->display == false) {
                        continue;
                    }
                    $tiles[$tname][$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
                    $tiletabs[$tname][$formRef->objectName] = $formRef->objectDescription;
                }
                // renderForms() : END
            }
        } else {            
            // renderForms() : BEGIN
            foreach ($webPage->formRefs as $formRef) {
                if ($formRef->display == false) {
                    continue;
                }
                $forms[$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
                $formtabs[$formRef->objectName] = $formRef->objectDescription;
            }
            // renderForms() : END            
        }
        if (count($webPage->widgets)) {
            // renderForms() : BEGIN
            foreach ($webPage->widgets as $formRef) {
                if ($formRef->display == false) {
                    continue;
                }
                $widgets[$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
            }
        }
        //Fill Loop related data
        $tplAttributes["forms"] = $forms;
        $tplAttributes["widgets"] = $widgets;
        $tplAttributes["formtabs"] = $formtabs;
        $tplAttributes["tiles"] = $tiles;
        $tplAttributes["tiletabs"] = $tiletabs;

        // add clientProxy scripts
        $includedScripts = Openbizx::$app->getClientProxy()->getAppendedScripts();
        $tplAttributes["style_sheets"] = Openbizx::$app->getClientProxy()->getAppendedStyles();
        
        if ($webPage->isPopup && $bReRender == false) {
            $moveToCenter = "moveToCenter(self, " . $webPage->width . ", " . $webPage->height . ");";
            $tplAttributes["scripts"] = $includedScripts . "\n<script>\n" . $newClntObjs . $moveToCenter . "</script>\n";
        } else {
            $tplAttributes["scripts"] = $includedScripts . "\n<script>\n" . $newClntObjs . "</script>\n";
        }
        if ($webPage->title) {
            $tplAttributes["title"] = Expression::evaluateExpression($webPage->title, $webPage);
        } else {
            $tplAttributes["title"] = $webPage->objectDescription;
        }
        if (OPENBIZ_DEFAULT_SYSTEM_NAME) {
            $tplAttributes["title"] = $tplAttributes["title"] . ' - ' . OPENBIZ_DEFAULT_SYSTEM_NAME;
        }
        return $tplAttributes;
    }
static public function buildTemplateAttributes($webPage)
    {
        // Assocative Array to hold all Template Values
        // Fill with default viewobj attributes
        //$tplAttributes = $viewObj->outputAttrs();
        //Not sure what this is doing...
        $newClntObjs = '';

        //Fill other direct view variables
        $tplAttributes["module"] = $webPage->getModuleName($webPage->objectName);
        $tplAttributes["description"] = $webPage->objectDescription;
        $tplAttributes["keywords"] = $webPage->keywords;
        
        if (isset($webPage->tiles)) {
            foreach ($webPage->tiles as $tname => $tile) {
                // renderForms() : BEGIN
                foreach ($tile as $formRef) {
                    if ($formRef->display == false) {
                        continue;
                    }
                    $tiles[$tname][$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
                    $tiletabs[$tname][$formRef->objectName] = $formRef->objectDescription;
                }
                // renderForms() : END
            }
        } else {            
            // renderForms() : BEGIN
            foreach ($webPage->formRefs as $formRef) {
                if ($formRef->display == false) {
                    continue;
                }
                $forms[$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
                $formtabs[$formRef->objectName] = $formRef->objectDescription;
            }
            // renderForms() : END            
        }
        if (count($webPage->widgets)) {
            // renderForms() : BEGIN
            foreach ($webPage->widgets as $formRef) {
                if ($formRef->display == false) {
                    continue;
                }
                $widgets[$formRef->objectName] = Openbizx::getObject($formRef->objectName)->render();
            }
        }
        //Fill Loop related data
        $tplAttributes["forms"] = $forms;
        $tplAttributes["widgets"] = $widgets;
        $tplAttributes["formtabs"] = $formtabs;
        $tplAttributes["tiles"] = $tiles;
        $tplAttributes["tiletabs"] = $tiletabs;

        // add clientProxy scripts
        $includedScripts = Openbizx::$app->getClientProxy()->getAppendedScripts();
        $tplAttributes["style_sheets"] = Openbizx::$app->getClientProxy()->getAppendedStyles();
        
        if ($webPage->isPopup && $bReRender == false) {
            $moveToCenter = "moveToCenter(self, " . $webPage->width . ", " . $webPage->height . ");";
            $tplAttributes["scripts"] = $includedScripts . "\n<script>\n" . $newClntObjs . $moveToCenter . "</script>\n";
        } else {
            $tplAttributes["scripts"] = $includedScripts . "\n<script>\n" . $newClntObjs . "</script>\n";
        }
        if ($webPage->title) {
            $tplAttributes["title"] = Expression::evaluateExpression($webPage->title, $webPage);
        } else {
            $tplAttributes["title"] = $webPage->objectDescription;
        }
        if (OPENBIZ_DEFAULT_SYSTEM_NAME) {
            $tplAttributes["title"] = $tplAttributes["title"] . ' - ' . OPENBIZ_DEFAULT_SYSTEM_NAME;
        }
        return $tplAttributes;
    }
Gather all template variables needed. Should play well with Smarty or \Zend templates

@param WebPage $webPage
@return array associative array holding all needed VIEW based template variables