Source of file NLLayoutContainer.php
Size: 1,008 Bytes - Last Modified: 2021-12-23T10:05:39+00:00
/var/www/docs.ssmods.com/process/src/code/layout/NLLayoutContainer.php
1234567891011121314151617181920212223242526272829303132333435 | <?php /** * layout container component, which logically acts the top-level container for a layout. * When an NLView is constructed, this component is always at the top of the hierarchy, * It should not be removed, and new instances should not be added as childen. */ class NLLayoutContainer extends NLLayoutComponent { static public function get_metadata() { return array( "name" => "Layout container", "description" => "Top-level container for a layout area", "imageURL" => null ); } function renderContent($context) { $content = ""; $i = 0; if ($this->children) { foreach ($this->children as $child) { $temp = $this->extend('updateRenderContent', $i); if (!empty($temp)) { $content .= $temp[0]; } $content .= $child->render($context); $i++; } } return $content; } } |