@param array $context
@param string $name
@param array $options

@return string
6491
public function renderMenu($context, $name, array $options = [])
    {
        $options = $this->resolver->resolve($options);

        $edit = $this->request && $this->request->attributes->get('integrated_menu_edit');
        $menu = $this->provider->get($name);

        $html = '';

        if ($edit) {
            $html .= '<div class="integrated-website-menu">';

            if (!$this->provider->has($name)) {
                $menu = $this->factory->createItem($name);
            }

            $html .= '<script type="text/json">' . json_encode(
                ['data' => $menu->toArray(), 'options' => $options]
            ) . '</script>';
        }

        if ($menu) {
            $this->matcher->setActive($menu);

            $html .= $this->helper->render($menu, $options);
        }

        if ($edit) {
            $html .= '</div>';
        }

        return $html;
    }
665666
protected function renderElement(string $name, array $options = []) : string
    {
        return $this->config->getView()
            ->element($name, $options);
    }
469271
public function get($name, array $options = [])
    {
        $group = $options['group'];

        $menuItem = $this->menuFactory->createItem($options['name']);

        if (empty($group['on_top']) || false === $group['on_top']) {
            foreach ($group['items'] as $item) {
                if ($this->canGenerateMenuItem($item, $group)) {
                    $menuItem->addChild($this->generateMenuItem($item, $group));
                }
            }

            if (false === $menuItem->hasChildren()) {
                $menuItem->setDisplay(false);
            } elseif (!empty($group['keep_open'])) {
                $menuItem->setAttribute('class', 'keep-open');
                $menuItem->setExtra('keep_open', $group['keep_open']);
            }
        } elseif (1 === \count($group['items'])) {
            if ($this->canGenerateMenuItem($group['items'][0], $group)) {
                $menuItem = $this->generateMenuItem($group['items'][0], $group);
                $menuItem->setExtra('on_top', $group['on_top']);
            } else {
                $menuItem->setDisplay(false);
            }
        }
        $menuItem->setLabel($group['label']);

        return $menuItem;
    }
978170
public function bitGet($name, array $options)
  {
    $arr = array();

    foreach ($options as $b) {
      if ($this->bitCheck($name, $b)) {
        $arr[] = $b;
      }
    }

    return $arr;
  }
1146961
public function plugin(string $name, array $options = []): PluginInterface
    {
        return $this->getPluginManager()->get($name, $options);
    }
98362
public static function group($Name, $Options=null)
    {
        $instance = FirePHP::getInstance(true);
        return $instance->group($Name, $Options);
    }
1039201
public function render($name, array $context = [])
    {
        $renderedHtml = $this->twig->render($name, $context);

        foreach ($this->postProcessors as $postProcessor) {
            if ($postProcessor instanceof PostProcessorInterface) {
                $renderedHtml = $postProcessor->process($renderedHtml, $name, $context, $this->twig);
            }
        }

        return $renderedHtml;
    }
700833
protected function _getFrameFlag($frame, $options, $name) {
    $flag = "@$name";
    $rval = (property_exists($frame, $flag) ?
      $frame->{$flag}[0] : $options[$name]);
    if($name === 'embed') {
      // default is "@last"
      // backwards-compatibility support for "embed" maps:
      // true => "@last"
      // false => "@never"
      if($rval === true) {
        $rval = '@last';
      } else if($rval === false) {
        $rval = '@never';
      } else if($rval !== '@always' && $rval !== '@never' &&
        $rval !== '@link') {
        $rval = '@last';
      }
    }
    return $rval;
  }
1129731
public function adCKEditor($name, $options = array())
    {
        $CKEditor = new \PlaygroundCore\Service\CKEditor();

        $CKEditor->returnOutput = true;

        /*
         * General module configurations
         */
        if (isset($this->Config['BasePath'])) {
            $CKEditor->basePath            = $this->Config['BasePath'].'/';
        }
        if (isset($this->Config['Toolbar'])) {
            $CKEditor->config['toolbar']    = $this->Config['Toolbar'];
        }
        if (isset($this->Config['Width'])) {
            $CKEditor->config['width']      = $this->Config['Width'];
        }
        if (isset($this->Config['Height'])) {
            $CKEditor->config['height']     = $this->Config['Height'];
        }
        if (isset($this->Config['Language'])) {
            $CKEditor->config['language']   = $this->Config['Language'];
        }
        if (isset($this->Config['Color'])) {
            $CKEditor->config['uiColor']    = $this->Config['Color'];
        }
        if (isset($this->Config['stylesSet'])) {
            $CKEditor->config['stylesSet']  = $this->Config['stylesSet'];
        }
        if (isset($this->Config['contentsCss'])) {
            $CKEditor->config['contentsCss']= $this->Config['contentsCss'];
        }
        if (isset($this->Config['templates_files'])) {
            $CKEditor->config['templates_files']  = $this->Config['templates_files'];
        }

        // El Finder
        if (isset($this->Config['ElFinderBaseURL'])) {
            $CKEditor->config['filebrowserBrowseUrl']    = $this->Config['ElFinderBaseURL'];
        }
        if (isset($this->Config['ElFinderWindowWidth'])) {
            $CKEditor->config['filebrowserWindowWidth']  = $this->Config['ElFinderWindowWidth'];
        }
        if (isset($this->Config['ElFinderWindowHeight'])) {
            $CKEditor->config['filebrowserWindowHeight'] = $this->Config['ElFinderWindowHeight'];
        }

        /*
         * special confirmations in your form
         */
        if (isset($options['BasePath'])) {
            $CKEditor->basePath            = $options['BasePath'].'/';
        }
        if (isset($options['Toolbar'])) {
            $CKEditor->config['toolbar']   = $options['Toolbar'];
        }
        if (isset($options['toolbar'])) {
            $CKEditor->config['toolbar']   = $options['toolbar'];
        }
        if (isset($options['Width'])) {
            $CKEditor->config['width']     = $options['Width'];
        }
        if (isset($options['Height'])) {
            $CKEditor->config['height']    = $options['Height'];
        }
        if (isset($options['Language'])) {
            $CKEditor->config['language']  = $options['Language'];
        }
        if (isset($options['Color'])) {
            $CKEditor->config['uiColor']   = $options['uiColor'];
        }
        if (isset($options['stylesSet'])) {
            $CKEditor->config['stylesSet'] = $options['stylesSet'];
        }
        if (isset($options['contentsCss'])) {
            $CKEditor->config['contentsCss'] = $options['contentsCss'];
        }
        if (isset($options['templates_files'])) {
            $CKEditor->config['templates_files']  = $options['templates_files'];
        }

        // El Finder
        if (isset($options['ElFinderBaseURL'])) {
            $CKEditor->config['filebrowserBrowseUrl']    = $options['ElFinderBaseURL'];
        }
        if (isset($options['ElFinderWindowWidth'])) {
            $CKEditor->config['filebrowserWindowWidth']  = $options['ElFinderWindowWidth'];
        }
        if (isset($options['ElFinderWindowHeight'])) {
            $CKEditor->config['filebrowserWindowHeight'] = $options['ElFinderWindowHeight'];
        }

        echo $CKEditor->replace($name);
    }
1294340
public static function fa ($name, $options = [])
		{
			if (!isset($options[ 'class' ]))
				$options[ 'class' ] = '';
			$options[ 'class' ] = trim($options[ 'class' ] . ' fa fa-' . $name);

			return self::tag('i', '', $options);
		}
325278
public function make($name, $options = [])
    {
        if (!$name || !$this->exists($name)) {
            return null;
        }

        return $name($options);
    }
113268
protected function _monthSelect($options, $context)
    {
        $options += [
            'name' => '',
            'names' => false,
            'val' => null,
            'leadingZeroKey' => true,
            'leadingZeroValue' => false,
            'templateVars' => [],
        ];

        if (empty($options['options'])) {
            if ($options['names'] === true) {
                $options['options'] = $this->_getMonthNames($options['leadingZeroKey']);
            } elseif (is_array($options['names'])) {
                $options['options'] = $options['names'];
            } else {
                $options['options'] = $this->_generateNumbers(1, 12, $options);
            }
        }

        unset($options['leadingZeroKey'], $options['leadingZeroValue'], $options['names']);

        return $this->_select->render($options, $context);
    }
1177308
public function AdCKEditor($name,$options = array())
    {
        $CKEditor = new \AdfabCore\Service\CKEditor();

        $CKEditor->returnOutput = true;

        /*
         * General module configurations
         */
        if(isset($this->Config['BasePath']))	$CKEditor->basePath 			= $this->Config['BasePath'].'/';
        if(isset($this->Config['Toolbar']))		$CKEditor->config['toolbar']    = $this->Config['Toolbar'];
        if(isset($this->Config['Width']))       $CKEditor->config['width']      = $this->Config['Width'];
        if(isset($this->Config['Height']))      $CKEditor->config['height']     = $this->Config['Height'];
        if(isset($this->Config['Language']))    $CKEditor->config['language']   = $this->Config['Language'];
        if(isset($this->Config['Color']))       $CKEditor->config['uiColor']    = $this->Config['Color'];
        if(isset($this->Config['stylesSet']))   $CKEditor->config['stylesSet']  = $this->Config['stylesSet'];
		if(isset($this->Config['contentsCss'])) $CKEditor->config['contentsCss']= $this->Config['contentsCss'];
        if(isset($this->Config['templates_files']))   $CKEditor->config['templates_files']  = $this->Config['templates_files'];

        // El Finder
        if(isset($this->Config['ElFinderBaseURL']))      $CKEditor->config['filebrowserBrowseUrl']    = $this->Config['ElFinderBaseURL'];
        if(isset($this->Config['ElFinderWindowWidth']))  $CKEditor->config['filebrowserWindowWidth']  = $this->Config['ElFinderWindowWidth'];
        if(isset($this->Config['ElFinderWindowHeight'])) $CKEditor->config['filebrowserWindowHeight'] = $this->Config['ElFinderWindowHeight'];

        /*
         * special confirmations in your form
         */
        if(isset($options['BasePath']))	 $CKEditor->basePath		    = $options['BasePath'].'/';
        if(isset($options['Toolbar']))   $CKEditor->config['toolbar']   = $options['Toolbar'];
        if(isset($options['toolbar']))   $CKEditor->config['toolbar']   = $options['toolbar'];
        if(isset($options['Width']))     $CKEditor->config['width']     = $options['Width'];
        if(isset($options['Height']))    $CKEditor->config['height']    = $options['Height'];
        if(isset($options['Language']))  $CKEditor->config['language']  = $options['Language'];
        if(isset($options['Color']))     $CKEditor->config['uiColor']   = $options['uiColor'];
        if(isset($options['stylesSet'])) $CKEditor->config['stylesSet'] = $options['stylesSet'];
        if(isset($options['contentsCss'])) $CKEditor->config['contentsCss'] = $options['contentsCss'];
        if(isset($options['templates_files']))   $CKEditor->config['templates_files']  = $options['templates_files'];

        // El Finder
        if(isset($options['ElFinderBaseURL']))           $CKEditor->config['filebrowserBrowseUrl']    = $options['ElFinderBaseURL'];
        if(isset($options['ElFinderWindowWidth']))       $CKEditor->config['filebrowserWindowWidth']  = $options['ElFinderWindowWidth'];
        if(isset($options['ElFinderWindowHeight']))      $CKEditor->config['filebrowserWindowHeight'] = $options['ElFinderWindowHeight'];

        echo $CKEditor->replace($name);
    }
723472
protected function doCreateCollection($name, array $options)
    {
        if (version_compare(phpversion('mongo'), '1.4.0', '>=')) {
            $this->riak->createCollection($name, $options);
        } else {
            $this->riak->createCollection($name, $options['capped'], $options['size'], $options['max']);
        }

        return $this->doSelectCollection($name);
    }
1235792
public function get($name, $options = null)
    {
        if ($this->has($name)) {
            return $this->resolve($name, $options);
        } else {
            $this->throwNotFound($name);
            return false;
        }
    }
641640
public function filter($name, array $options = [])
    {
        $result = static::INT_FILTER;

        if ($this->isMultipartImage()) {
            $this->resource = $this->resource->coalesceImages();
        }

        foreach ($this->resource as $frame) {
            $result = $this->callParentFilter($name, $options);
        }


        if (static::EXT_FILTER === $result and isset($this->filters[$name])) {

            $filter = new $this->filters[$name]($this, $options);

            foreach ($this->resource as $frame) {
                $filter->run();
            }
        }

    }
667179
public function createNamedFormBuilder($name, $model, $form = 'default', $context = [], $options=[])
    {
        $fb = $this->formFactory->createNamedBuilder($name, FormType::class, $model, $options);

        $this->populateFormBuilder($fb, $model, $form, $context);
        return $fb;
    }