Does the actual rendering of a single box

@param array $boxData the box configuration data
@param int $colSize the column size
972975
protected function renderBox($boxData, $colSize)
	{
		$options = $boxData['options'];
		Html::addCssClass($options, 'col-md-' . $colSize);
		Html::addCssClass($options, 'col-sm-' . ($colSize * 2));
		Html::addCssClass($options, 'stats-box');

		echo Html::beginTag('div', $options);
		echo Html::beginTag('div', ['class'=>'stats-box-content-wrapper']);

		//header
		echo Html::beginTag('div', ['class'=>'stats-box-header']);
		if (isset($boxData['headerIcon'])) {
			echo $this->createIcon($boxData['headerIcon']);
		}
		echo Html::tag($this->headerTagName, $boxData['header']);
		echo Html::endTag('div');

		//content
		echo Html::beginTag('div', ['class'=>'stats-box-content']);
		if (isset($boxData['valuePrefix'])) echo Html::tag('span', $boxData['valuePrefix'], ['class'=>'stats-box-content-prefix']);
		$value = $boxData['value'] instanceof \Closure ? call_user_func($boxData['value']) : $boxData['value'];
		echo Html::tag('span', $value, ['class'=>'stats-box-value']);
		if (isset($boxData['valueSuffix'])) echo Html::tag('span', $boxData['valueSuffix'], ['class'=>'stats-box-content-suffix']);
		echo Html::endTag('div');

		echo Html::endTag('div');
		echo Html::endTag('div');
	}
1348328
function IODataSource(config) {
	this.columns = standardizeCols(config.columns);
	this.io = config.data;
	this.node = config.node;

	this.fetch = config.fetch || function(io, sort, dir) {
		io.post('sort=' + sort + '&dir=' + dir);
	}

	// Default to the first col ASC for sorting
	this.colSortIdx = config.defaultSortCol || -1
}
503769
public function render(ViewData $data): void
    {
        $modelData = $data->model()->data();
        $templatePath = $data->templatePath();

        if (!$modelData) {
            return;
        }

        $this
            ->twigLoad($templatePath)
            ->display($modelData);
    }
250810
protected function renderTable($data, $cellPadding, $columnsWidths) {
		$tableRows = [];
		
		foreach ($data as $row) {
			$row      = array_values($row);
			$tableCol = '|';
			
			$columnsNumber = count($columnsWidths);
			
			for ($colNm = 0; $colNm < $columnsNumber; ++ $colNm) {
				$colWidth = $columnsWidths[$colNm];
				$col      = isset($row[$colNm]) ? $row[$colNm] : '';
				$len      = $this->strlen($col);
				
				if ($colWidth > $len) {
					$col .= str_repeat(' ', $colWidth - $len);
				}
				
				$paddings  = str_repeat(' ', $cellPadding);
				$tableCol .= $paddings . $col . $paddings . '|';
			}
			
			$tableRows[] = $tableCol;
		}
		
		$delimLine = '+';
		
		foreach ($columnsWidths as $width) {
			$delimLine .= str_repeat('-', $width + $cellPadding * 2) . '+';
		}
		
		$body = implode(PHP_EOL . $delimLine . PHP_EOL, $tableRows);
		
		return $delimLine . PHP_EOL . $body . PHP_EOL . $delimLine;
	}
187453
private function setFrame($bodySize)
    {
        $this->frame = $this->factory->createFrame(
            $this->command,
            $this->headers,
            (string)substr($this->buffer, $this->offset, $bodySize),
            $this->legacyMode
        );

        $this->expectedBodyLength = null;
        $this->headers = [];
        $this->mode = self::MODE_HEADER;
    }
1334863
private function updateBBox($type, $data)
    {
        $min = $type . 'min';
        $max = $type . 'max';

        if (! isset($this->boundingBox[$min]) || $this->boundingBox[$min] == 0.0 || ($this->boundingBox[$min] > $data[$min])) {
            $this->boundingBox[$min] = $data[$min];
        }
        if (! isset($this->boundingBox[$max]) || $this->boundingBox[$max] == 0.0 || ($this->boundingBox[$max] < $data[$max])) {
            $this->boundingBox[$max] = $data[$max];
        }
    }
1035636
protected function prepSaveData(&$data)
    {
        if (!is_array($data)) {
            $data = [];
        }

        ksort($data);

        $data['containers'] = [];
        $data['pageContainer'] = [];

        if (empty($data['plugins'])) {
            throw new InvalidArgumentException(
                'Save Data missing plugins .
                Please make sure the data you\'re attempting to save is correctly formatted.
            '
            );
        }

        foreach ($data['plugins'] as &$plugin) {
            $this->cleanSaveData($plugin['saveData']);

            /* Patch for a Json Bug */
            if (!empty($plugin['isSitewide'])
                && $plugin['isSitewide'] != 'false'
                && $plugin['isSitewide'] != '0'
            ) {
                $plugin['isSitewide'] = 1;
            } else {
                $plugin['isSitewide'] = 0;
            }

            if (empty($plugin['sitewideName'])) {
                $plugin['sitewideName'] = null;
            }

            $plugin['rank'] = (int)$plugin['rank'];
            $plugin['rowNumber'] = (int)$plugin['rowNumber'];
            $plugin['columnClass'] = (string)$plugin['columnClass'];

            $plugin['containerName'] = $plugin['containerId'];

            if ($plugin['containerType'] == 'layout') {
                $data['containers'][$plugin['containerId']][] = &$plugin;
            } else {
                $data['pageContainer'][] = &$plugin;
            }
        }
    }
1329055
private function isSelectColumn($data)
    {
        if (null !== $data && !in_array($data, $this->virtualColumns)) {
            return true;
        }

        return false;
    }
1135300
protected function _prepareCol($colId) {
        if (isset($this->columns[$colId]['td'])) return;
        $col = &$this->columns[$colId];
        $colClass = str_replace(',','',$colId);
        $className = 's4y-grid-'.$this->_id.'-col-'.$colClass;

        $th = Html::el('th', ['class' => $className]);
        $td = Html::el('td', ['class' => $className]);
        $tdstyle = Assets::newStyle();
        $thstyle = Assets::newStyle();

        if (isset($col['width'])) {
            //$tdstyle->width = $col['width'].'px';
            $thstyle->width = $col['width'].'px';
        }
        if (isset($col['style'])) {
            $tdstyle->add($col['style']);
        }
        if (isset($col['nowrap']) && $col['nowrap']) $tdstyle->whiteSpace = 'nowrap';
        if (isset($col['align'])) {
            $tdstyle->textAlign = $col['align'];
            $thstyle->textAlign = $col['align'];
        }
        if (isset($col['header']['rowspan'])) {
            $th->rowspan($col['header']['rowspan']);
        }

        //if ($className = $tdstyle->saveClass('s4y-grid-'.$this->_id.'-td-'.$colClass)) {
        //    $td->_class($className);
        //}
        //if ($className = $thstyle->saveClass('s4y-grid-'.$this->_id.'-th-'.$colClass)) {
        //    $th->_class($className);
        //}

        $tdstyle->save('td.'.$className);
        $thstyle->save('th.'.$className);

        $th->addHtml($this->_colHeader($colId));

        if (isset($col['href'])) {
            $a = Html::el('a', '%%content%%')->href($col['href']);
            if (isset($col['hrefTarget'])) $a->target($col['hrefTarget']);
            $td->addHtml($a);
        } else {
            $td->addText('%%content%%');
        }
        $col['td'] = strval($td);
        $col['th'] = strval($th);
    }
370239
protected function init($data)
    {
        $i = 0;

        foreach ($data as $header => $value) {
            $column = self::formatColumnName($i);
            $this->setHeader($column, $header);
            ++$i;
        }
        $this->setBoldLabels();
    }
771624
function _updateRowsCols($rowdata = null) {
        // Update maximum columns.
        $this->_max_cols = max($this->_max_cols, count($rowdata));

        // Update maximum rows.
        ksort($this->_data);
        $keys = array_keys($this->_data);
        $this->_max_rows = end($keys) + 1;

        switch ($this->_defaultAlign) {
            case self::CONSOLE_TABLE_ALIGN_CENTER:
                $pad = STR_PAD_BOTH;
                break;
            case self::CONSOLE_TABLE_ALIGN_RIGHT:
                $pad = STR_PAD_LEFT;
                break;
            default:
                $pad = STR_PAD_RIGHT;
                break;
        }

        // Set default column alignments
        for ($i = 0; $i < $this->_max_cols; $i++) {
            if (!isset($this->_col_align[$i])) {
                $this->_col_align[$i] = $pad;
            }
        }
    }
1226976
public function renderBulkActions() {
		
        Booster::getBooster()->registerAssetJs('jquery.saveselection.gridview.js');
        $this->componentsAfterAjaxUpdate[] = "$.fn.yiiGridView.afterUpdateGrid('".$this->id."');";
		echo '<tr><td colspan="' . count($this->columns) . '">';
		$this->bulk->renderButtons();
		echo '</td></tr>';
	}
1007609
public function RenderHtml(&$Content, &$Data)
    {
        header('Content-Type: text/html');

        foreach ($Content as $key => $val) {

            $datum = isset($Data[$val['key']]) ? $Data[$val['key']] : null;
            $hasChild = isset($val['child']) ? true : false;

            $this->_Output .= $val['text'];

            if ($this->CustomRender !== null) {
                $this->CustomRender->RegisterFunction($val['key'], $val['param']);
                $this->_Output .= $this->CustomRender->Parse();
            }

            if ($val['param'] !== false) {
                if ($val['key'] === 'css') {
                    $this->tempCss .= $val['param'];
                }
                if ($val['key'] === 'js') {
                    $this->tempJs .= $val['param'];
                }

                if ($val['key'] === 'part') {
                    if ($val['param'] === 'css') {
                        $this->_Output .= $this->tempCss;
                    }
                    if ($val['param'] === 'js') {
                        $this->_Output .= $this->tempJs;
                    }
                }
            }

            if ($this->GetVarType($datum) === $this->STRINGS) {
                $this->_Output .= (string)$Data[$val['key']];
            } else if ($this->GetVarType($datum) === $this->NUMERIC) {
                $this->_Output .= (double)$Data[$val['key']];
            } else if ($this->GetVarType($datum) === $this->ARRAYS) {
                foreach ($datum as $k => $v) {
                    if (is_array($v)) {
                        //Numeric Array
                        $this->RenderHtml($val['child'], $v);
                    } else {
                        //Associative Arrays
                        $this->RenderHtml($val['child'], $datum);
                        break;
                    }
                }
            } else if ($this->GetVarType($datum) === $this->BOOLEANS) {
                if ($datum) {
                    $this->RenderHtml($val['child'], $datum);
                }
            } else if ($this->GetVarType($datum) === $this->OBJECTS) {
                if ($datum instanceof Parts) {
                    $datum->RegisterFunction($val['key'], $val['param']);
                    if ($datum->tags === $datum->fnName) {
                        //Append output
                        $this->_Output .= $datum->Parse();
                        //Append property
                        $this->tempCss .= $datum->pte->GetTempCss();
                        $this->tempJs .= $datum->pte->GetTempJs();
                    }
                }
            } else {
                if ($hasChild && $datum !== null) {
                    $this->RenderHtml($val['child'], $datum);
                }
            }
        }
        return $this->_Output;
    }
1347833
public static function resize(\Imagick $source, int $boxWidth, int $boxHeight, array $options = []) : \Imagick
    {
        $results = self::resizeMulti($source, [['width' => $boxWidth, 'height' => $boxHeight]], $options);
        return $results[0];
    }
1048139
private function _resize (ImageInterface $image, BoxInterface $newSize)
		{
			$size = $image->getSize();
			$ratio = min($newSize->getHeight() / $size->getHeight(), $newSize->getWidth() / $size->getWidth());
			if ($ratio < 1)
				$image->resize($size->scale($ratio));
		}
141455
function (initData) {
        var body = document.body;

        body.style.overflow = initData.bodyOverflow;
        body.style.width = initData.bodyWidth;
        body.style.height = initData.bodyHeight;
    }
1077407
function _ruleCheckMaxFileSize($elementValue, $maxSize)
    {
        if (!empty($elementValue['error']) && 
            (UPLOAD_ERR_FORM_SIZE == $elementValue['error'] || UPLOAD_ERR_INI_SIZE == $elementValue['error'])) {
            return false;
        }
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        return ($maxSize >= @filesize($elementValue['tmp_name']));
    }