Render a browsebox object

@param Garp_Browsebox $browsebox
@param array $params Extra parameters sent to the partial
@return string
962045
public function browsebox(Garp_Browsebox $browsebox = null, $params = array()) {
        if (is_null($browsebox)) {
            return $this;
        }

        static::$_store[$browsebox->getId()] = $browsebox;
        $params = array_merge(
            $params, array(
                'results' => $browsebox->getResults(),
                'next'    => $browsebox->getNextUrl(),
                'prev'    => $browsebox->getPrevUrl()
            )
        );
        return $this->view->partial(
            $browsebox->getViewPath(),
            'default',
            $params
        );
    }
349475
public function render(array $parameters = []): string
    {
        /** @var Location $location */
        $location = $parameters['location'];
        /** @var Content $content */
        $content = $parameters['content'];
        /** @var Language $language */
        $language = $parameters['language'];
        $versionNo = $content->getVersionInfo()->versionNo;

        // nonpublished content should use parent location instead because location doesn't exist yet
        if (!$content->contentInfo->published && null === $content->contentInfo->mainLocationId) {
            $parentLocations = $this->locationService->loadParentLocationsForDraftContent($content->getVersionInfo());
            $location = reset($parentLocations);
            $versionNo = null;
        }

        $siteaccesses = $this->siteaccessResolver->getSiteaccessesForLocation(
            $location,
            $versionNo,
            $language->languageCode
        );

        if (empty($siteaccesses)) {
            return $this->twig->render(
                '@ezdesign/content/content_edit/component/preview_unavailable.html.twig'
            );
        }

        return '';
    }
1081967
final public static function cssiumio(array $params)
    {
        return ("<link href='".FEnv::get("host.web.components")."libs/iumio-framework/css/".
            ((isset($params['name']))? $params['name'].
                ".".((isset($params['min']) && $params['min'] == "yes")? "min"."." : "") : "").
            "css' rel='stylesheet' />");
    }
329623
public function index($params = [], $optParams = [])
    {
        if ($optParams instanceof IndexParams) {
            $optParams = $optParams->toArray(true);
        }

        return $this->sendRequest([], [
            'restAction' => 'index',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            $backups = [];
            if (isset($response->data['items'])) {
                foreach ($response->data['items'] as $superbackup) {
                    $backups[] = new SuperBackup($superbackup);
                }
            }

            return new Index([
                'models' => $backups,
                'nextPageToken' => $response->data['nextPageToken'],
            ]);
        });
    }
700136
public static function browseByUser($options = [])
    {
        $find = $options['user']->roles();
        $total = $find->count();

        if (!empty($options['order'])) {
            foreach ($options['order'] as $field => $direction) {

                $find = $find->orderBy($field, $direction);
            }
        }

        if (!empty($options['offset'])) {
            $find = $find->skip($options['offset']);
        }

        if (!empty($options['limit'])) {
            $find = $find->take($options['limit']);
        }

        return [
            'total'  => $total,
            'offset' => empty($options['offset']) ? 0 : $options['offset'],
            'limit'  => empty($options['limit']) ? 0 : $options['limit'],
            'data'   => $find->get(),
        ];
    }
1334448
public function render($view, $params = array()) {
        $viewPath = $this->viewPath;
        $viewPath = rtrim($viewPath, '/').'/';
        extract($params);
        if (is_file($view)) {
            require_once($view);
        } else if (is_file($viewPath.str_replace(':', '/', $view))) {
            require_once($viewPath.str_replace(':', '/', $view));
        } else {
            echo $view;
        }
    }
1173555
public function getHtmlToutesLesActualites($params = array())
	{
		$html = "<h1>"._("Actualités")."</h1>";

		$d = new dateObject();
		$pagination = new paginationObject();
		$resDernieresActualites = $this->getDernieresActualites(array('sqlFields'=>'0', "returnAsMysqlRes"=>true));
		$nbEnregistrementTotaux = mysql_num_rows($resDernieresActualites);


		$nbEnregistrementsParPage=15;

		$arrayPagination=$pagination->pagination(
				array(
						'nomParamPageCourante'=>'page',
						'nbEnregistrementsParPage'=>$nbEnregistrementsParPage,
						'nbEnregistrementsTotaux'=>$nbEnregistrementTotaux,
						'typeLiens'=>'noformulaire'
				)
		);



		$arrayActus = $this->getDernieresActualites(array("sqlWhere"=>" AND desactive<>'1' ", "sqlLimit"=>"LIMIT ".mysql_real_escape_string($arrayPagination['limitSqlDebut']).", ".$nbEnregistrementsParPage));

		$tab = new tableau();

		foreach ($arrayActus as $indice => $value) {
			if ($value['urlFichier']!='') {
				$url = $value['urlFichier'];
			} else {
				$url = $this->creerUrl('', 'afficherActualite', array('archiIdActualite'=>$value['idActualite']));
			}

			$tab->addValue("<a href='".$url."'>".$d->toFrenchAffichage($value['date'])." ".stripslashes($value['titre'])."</a>");

			if ($value['photoIllustration']!='') {
				list($w, $h) = getimagesize(
						$this->getCheminPhysique()."images/actualites/".
						$value['idActualite']."/".$value['photoIllustration']
				);
				if ($w>$h) {
					$dimension = "width=80";
				} else {
					$dimension = "height=80";
				}

				$tab->addValue(
						"<img src='".$this->urlImages."actualites/".
						$value['idActualite']."/".
						$value['photoIllustration']."' $dimension>"
				);
			} else {
				$tab->addValue("&nbsp;");
			}
		}

		$html.=$arrayPagination['html'];
		$html.=$tab->createHtmlTableFromArray(
				2, 'margin:0;padding:0;', '', '', " border=''"
		);


		return $html;

	}
867759
protected function renderPartial(string $view, array $params = []): string
    {
        $this->getTemplateEngine()->addGlobal('_request', $this->getRequest());

        return $this->getTemplateEngine()->render($view, $params);
    }
1235131
public function render($filename, array $params = array())
    {
        $this->properties = $params;

        $file = $this->scriptPath.DIRECTORY_SEPARATOR.$filename;
        if (!file_exists($file)) {
            $this->logger->error('Could not find template '.$file);

            return '';
        }
        ob_start();
        include $file;

        return ob_get_clean();
    }
387964
public function fetch($index = null, $params = array(
        'index' => true,
        'overview' => true,
        'structure' => true,
        'header' => true,
        'body' => true,
        'plain' => true,
        'attachments' => true,
    )){
        $params = Arr::mergeWithDefaultParams($params);

        $this->attachments = [];

        if (!$index) {
            $index = 1;
        }

        $this->messageNumber = $index;

        $structure = @imap_fetchstructure($this->conn, $index);

        if (!$structure) {
            return false;
        } else {
            $data = [];

            if($params['index']){
                $data['index'] = $index;
            }

            if($params['overview']){
                $data['overview'] = @imap_fetch_overview($this->conn, $index);
            }

            if($params['structure']){
                $data['structure'] = $structure;
            }

            if($params['header']){
                $data['header'] = @imap_header($this->conn, $index);
            }

            if($params['body']){
                $this->bodyHTML = $data['body'] = @imap_body($this->conn, $index);
            }

            if($params['plain']){
                $data['plain'] = @imap_fetchbody($this->conn, $index, 1.2);
            }

            if($params['attachments']){
                $this->recurse($structure->parts);
                $data['attachments'] = $this->attachments;
            }

            return $data;
        }

    }
512903
public function render($params = null)
    {
        $template = $this->getViewer($this->getAction());

        // if the object is already customised (e.g. through Controller->run()), use it
        $obj = $this->getCustomisedObj() ?: $this;

        if ($params) {
            $obj = $this->customise($params);
        }

        return $template->process($obj);
    }
503227
public function renderAPMOptionsDrop(array $options, string $selected = null): string
    {
        $droplist = null;
        $labels = array_keys($this->offices);
        foreach ($options as $key => $value) {
            $droplist .= in_array($key, $labels) ? $value : null;
            $droplist .= $this->renderAPMOptionsSelected($key, $value, $selected);
            $droplist .= ($key === 'AP&M 7456') ? '</optgroup>' : null;
        }

        return $droplist;
    }
742608
public function listWebResource($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse");
  }
324667
public function _browseFrom($query, $parameters = [], $cursor = null)
    {
        /** @var \AlgoliaSearch\Laravel\ModelHelper $modelHelper */
        $modelHelper = App::make('\AlgoliaSearch\Laravel\ModelHelper');

        $index = null;

        if (isset($parameters['index'])) {
            $index = $modelHelper->getIndices($this, $parameters['index'])[0];
            unset($parameters['index']);
        } else {
            $index = $modelHelper->getIndices($this)[0];
        }

        $result = $index->browseFrom($query, $parameters, $cursor);

        return $result;
    }
490016
protected function _render($params) {
		foreach ($params as $name => $param) {
			if ($name === 'run' || empty($param['name'])) {
				continue;
			}
			$usage = (!empty($param['usage'])) ? trim($param['usage'], ' []') : $param['name'];
			$this->out($this->_pad($usage), 'option');

			if ($param['description']) {
				$this->out($this->_pad($param['description'], 2));
			}
			$this->nl();
		}
	}
1000023
public function render(array $chapter, array $params = array()) {
        $partial = 'partials/chapters/' . ($chapter['type'] ?: 'default') . '.phtml';
        $params['content'] = $chapter['content'];
        return $this->view->partial($partial, 'default', $params);
    }
335837
public function detail($params = [], $optParams = [])
    {
        if ($optParams instanceof DetailParams) {
            $optParams = $optParams->toArray(true);
        }

        return $this->sendRequest([], [
            'customAction' => 'detail',
            'method' => 'GET',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            $items = [];
            $warnings = [];
            foreach ($response->data['items'] as $item) {
                $items[] = new DetailItem($item);
            }
            foreach ($response->data['warnings'] as $warning) {
                $warnings[] = new DetailWarning($warning);
            }

            return new Detail([
                'items' => $items,
                'warnings' => $warnings,
            ]);
        });
    }