renders the columns of the grid container and returns the actual content

@param array $setup The adjusted setup of the grid container

@return string $content The raw HTML output of the grid container before stdWrap functions will be applied to it
551437
public function renderColumnsIntoParentGrid($setup = [])
    {
        if (empty($this->cObj->data['tx_gridelements_view_columns'])) {
            return '';
        }
        $content = '';
        foreach ($this->cObj->data['tx_gridelements_view_columns'] as $column => $columnContent) {
            // if there are any columns available, we have to determine the corresponding TS setup
            // and if there is none we are going to use the default setup
            $tempSetup = isset($setup['columns.'][$column . '.']) ? $setup['columns.'][$column . '.'] : $setup['columns.']['default.'];
            // now we just have to unset the renderObj
            // before applying the rest of the keys via the usual stdWrap operations
            unset($tempSetup['renderObj']);
            unset($tempSetup['renderObj.']);

            // we render each column into the column key to provide them prerendered for usage  with your own templating
            $this->cObj->data['tx_gridelements_view_column_' . $column] = empty($tempSetup)
                ? $columnContent
                : $this->cObj->stdWrap($columnContent, $tempSetup);
            $content .= $this->cObj->data['tx_gridelements_view_column_' . $column];
        }
        return $content;
    }
236621
public function render()
    {
        $output[] = $this->open();

        if ( ! empty($this->content)) {
            $output[] = implode(PHP_EOL, $this->content);
        }

        if ($this->hasChildNodes()) {

            if ($this->auto) {
                $columns = $this->childNodes->count();

                if ($columns > 2) {
                    $extraSmallColumn = @round(12 / ($columns - 2));
                    $smallColumn = @round(12 / ($columns - 1));
                }

                $mediumColumn = round(12 / ($columns));
                $largeColumn = round(12 / ($columns));
            }

            foreach ($this->childNodes as $childNode) {
                if ($this->auto) {
                    if (isset($extraSmallColumn)) {
                        $childNode->attributes->addAttributeClass('col-xs-' . $extraSmallColumn);
                    }

                    if (isset($smallColumn)) {
                        $childNode->attributes->addAttributeClass('col-sm-' . $smallColumn);
                    }

                    $childNode->attributes->addAttributeClass('col-md-' . $mediumColumn);
                    $childNode->attributes->addAttributeClass('col-lg-' . $largeColumn);
                }

                $output[] = $childNode->render() . PHP_EOL;
            }
        }

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
1243574
public function render()
    {
        $this->calculateColumnWidth();
        $output = $this->isShowBorder
            ? $this->renderBorder()
            : '';
        foreach ($this->rows as $rowIndex => $row) {
            foreach ($row as $cellIndex => $cell) {
                $output .= $this->renderCell($cellIndex, $row);
            }
            $output .= "\n";
            if ($rowIndex === self::HEADER_INDEX) {
                $output .= $this->renderBorder();
            }
        }
        $output .= $this->isShowBorder
            ? $this->renderBorder()
            : '';

        return $output;
    }
1129785
protected function _renderTemplate($template) {
		if ($section = $this->_findSection($template)) {
			list($before, $type, $tag_name, $content, $after) = $section;

			$rendered_before = $this->_renderTags($before);

			$rendered_content = '';
			$val = $this->_getVariable($tag_name);
			switch($type) {
				// inverted section
				case '^':
					if (empty($val)) {
						$rendered_content = $this->_renderTemplate($content);
					}
					break;

				// regular section
				case '#':
					// higher order sections
					if ($this->_varIsCallable($val)) {
						$rendered_content = $this->_renderTemplate(call_user_func($val, $content));
					} else if ($this->_varIsIterable($val)) {
						foreach ($val as $local_context) {
							$this->_pushContext($local_context);
							$rendered_content .= $this->_renderTemplate($content);
							$this->_popContext();
						}
					} else if ($val) {
						if (is_array($val) || is_object($val)) {
							$this->_pushContext($val);
							$rendered_content = $this->_renderTemplate($content);
							$this->_popContext();
						} else {
							$rendered_content = $this->_renderTemplate($content);
						}
					}
					break;
			}

			return $rendered_before . $rendered_content . $this->_renderTemplate($after);
		}

		return $this->_renderTags($template);
	}
361727
public function renderSelf($layout = null, $title = null)
    {
        return $this->getController()->customise([
            'Content' => $this->renderContent($layout, $title)
        ])->renderWith(self::class);
    }
604092
protected function renderContent($layout = true)
    {
        if (isset($this->content)) {
            return $this->content;
        }
        if (is_null(Yii::$app->controller) && !is_null($this->controller)) {
            Yii::$app->controller = $this->controller;
        }
        if (is_null(Yii::$app->controller->action) && !is_null($this->action)) {
            Yii::$app->controller->action = $this->action;
        }
        if (isset($this->controller) && $this->view) {
            $this->controller->params = array_merge($this->controller->params, $this->params);
            if ($layout) {
                return $this->controller->render($this->view);
            } else {
                return $this->controller->renderPartial($this->view);
            }
        }

        return;
    }
1234713
private function createPagSeguroOrdersTable($setup) 
    {
        // Get pagseguro orders table
        $tableName = $setup->getTable(self::PAGSEGURO_ORDERS);
        // Check if the table already exists
        if ($setup->getConnection()->isTableExists($tableName) != true) {
            // Create pagseguro orders table
            $table = $setup->getConnection()
                ->newTable($tableName)
                ->addColumn(
                    'entity_id',
                    Table::TYPE_INTEGER,
                    11,
                    [
                        'identity' => true,
                        'unsigned' => true,
                        'nullable' => false,
                        'primary' => true
                    ],
                    'Entity ID'
                )
                ->addColumn(
                    'order_id',
                    TABLE::TYPE_INTEGER,
                    11,
                    [],
                    'Order id'
                )
                ->addColumn(
                    'transaction_code',
                    Table::TYPE_TEXT,
                    80,
                    [],
                    'Transaction code'
                )
                ->addColumn(
                    'sent',
                    Table::TYPE_INTEGER,
                    11,
                    ['nullable' => false, 'default' => 0],
                    'Sent Emails'
                )
                ->addColumn(
                    'environment',
                    Table::TYPE_TEXT,
                    40,
                    [],
                    'Environment'
                )
                ->addColumn(
                    'created_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT],
                    'Created At'
                )->addColumn(
                    'updated_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT_UPDATE],
                    'Updated At'
                )
                ->setComment('PagSeguro Orders Table')
                ->setOption('type', 'InnoDB')
                ->setOption('charset', 'utf8');
            $setup->getConnection()->createTable($table);
        }
    }
803304
public function renderSettings($setting)
    {
        // Set the setting value if any.
        $value = get_option($setting->getName(), null);

        if (! is_null($value)) {
            $setting->setValue($value);
        }

        $view = sprintf('%s.%s', $this->ui()->getTheme(), $setting->getView(false));

        echo $this->ui()->factory()->make($view)->with([
            '__field' => $setting,
            '__page' => $this
        ])->render();
    }
296934
def render(self, content = None, **settings):
        
        (content, settings) = self.get_setup(content, **settings)
        return self._render(content, **settings)
1000476
public function prepareContent()
    {
        $content = $this->content;

        if ($content instanceof Renderable) {
            $content = $content->render();
        } else if ($this->shouldBeJson($content)) {
            $content = $this->toJson($content);
        }

        return $content;
    }
908269
protected function renderCells()
    {
        $row = $this->getDataRow();
        $out = '';
        foreach($this->grid->getConfig()->getColumns() as $column) {
            $component = new TableCell($column);
            $component->initialize($this->grid);
            $component->setContent($column->getValue($row));
            $out .= $component->render();
        }
        return $out;
    }
996069
public function renderLayout($content, $layout = null)
    {
        $html = parent::renderLayout($content, $layout);

        return $this->shortcodes($html);
    }
940402
public function renderTemplate($offset='') {
		$randstr = \Asgard\Common\Tools::randstr(10);
		$jq = $this->renderNew('{{'.$randstr.'}}');
		$jq = addcslashes((string)$jq, "'");
		$jq = str_replace("\r\n", "\n", $jq);
		$jq = str_replace("\n", "\\\n", $jq);
		$jq = str_replace('{{'.$randstr.'}}', $offset, $jq);
		return $jq;
	}
137066
public function renderHeaderCell()
	{
		if ($this->grid->json) {
			$header = array('id' => $this->id);
			$content = array();
			if ($this->grid->enableSorting && $this->sortable && $this->name !== null) {
				$sort = $this->grid->dataProvider->getSort();
				$label = isset($this->header) ? $this->header : $sort->resolveLabel($this->name);

				if ($sort->resolveAttribute($this->name) !== false) {
					$label .= '<span class="caret"></span>';
				}
				$content['content'] = $sort->link($this->name, $label, array('class' => 'sort-link'));
			} else {
				if ($this->name !== null && $this->header === null) {
					if ($this->grid->dataProvider instanceof CActiveDataProvider) {
						$content['content'] = CHtml::encode(
							$this->grid->dataProvider->model->getAttributeLabel($this->name)
						);
					} else {
						$content['content'] = CHtml::encode($this->name);
					}
				} else {
					$content['content'] = trim($this->header) !== '' ? $this->header
						: $this->grid->blankDisplay;
				}
			}
			return CMap::mergeArray($header, $content);
		}
		parent::renderHeaderCell();
	}
661334
protected function wrapLayout($content)
    {
        // do not wrap the content if layout is turned off.
        if ($this->layout === false) {
            return $content;
        }
        
        $view = Yii::$app->getView();
        
        $vars = array_merge($this->_context, ['content' => $content]);
        
        return $view->renderPhpFile(Yii::getAlias($this->layout), $vars);
    }
789309
public function createCategoryFacetConfigurationTable(SchemaSetupInterface $setup)
    {
        // Create table 'smile_elasticsuitecatalog_category_filterable_attribute'.
        $tableName = 'smile_elasticsuitecatalog_category_filterable_attribute';
        $idField   = $this->metadataPool->getMetadata(CategoryInterface::class)->getIdentifierField();

        $table = $setup->getConnection()
            ->newTable($setup->getTable($tableName))
            ->addColumn(
                $idField,
                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                null,
                ['unsigned' => true, 'primary' => true, 'nullable' => false],
                'Category ID'
            )
            ->addColumn(
                'attribute_id',
                \Magento\Framework\DB\Ddl\Table::TYPE_SMALLINT,
                null,
                ['unsigned' => true, 'primary' => true, 'nullable' => false],
                'Attribute Id'
            )
            ->addColumn(
                'position',
                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                null,
                ['nullable' => true, 'unsigned' => true],
                'Position'
            )
            ->addColumn(
                'facet_display_mode',
                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                null,
                ['nullable' => false, 'default' => '0'],
                'Facet display mode'
            )
            ->addColumn(
                'facet_min_coverage_rate',
                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                null,
                ['nullable' => true],
                'Facet min coverage rate'
            )
            ->addColumn(
                'facet_max_size',
                \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                null,
                ['nullable' => true, 'unsigned' => true],
                'Facet max size'
            )
            ->addColumn(
                'facet_sort_order',
                \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                25,
                ['nullable' => true],
                'Facet sort order'
            )
            ->addForeignKey(
                $setup->getFkName($tableName, $idField, 'catalog_category_entity', $idField),
                $idField,
                $setup->getTable('catalog_category_entity'),
                $idField,
                \Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
            )
            ->addForeignKey(
                $setup->getFkName($tableName, 'attribute_id', 'eav_attribute', 'attribute_id'),
                'attribute_id',
                $setup->getTable('eav_attribute'),
                'attribute_id',
                \Magento\Framework\DB\Ddl\Table::ACTION_CASCADE
            )
            ->setComment('Facet configuration for each category.');

        $setup->getConnection()->createTable($table);
    }
955489
public function render($template)
    {
        $template = "{$this->directory}/{$template}";
        
        ob_start();
        ob_implicit_flush();
        
        /** @var string $template */
        if (file_exists($template)) {
            extract($this->data->toArray());
            include $template;
        } else {
            return "/** [$template] */";
        }
        
        return ob_get_clean();
    }