Header::createOptions

@return Nav
423398
public function createOptions()
    {
        $nav = new Nav(Nav::HEADER_PILLS);
        $nav->attributes->addAttributeClass('float-right');
        $this->childNodes->push($nav);

        return $this->options = $this->childNodes->last();
    }
1151790
public function create()
    {
        // Look for overriden views
        $this->overrideViews();

        // Pass validation through
        Former::withRules($this->getRules());

        // Initialize localization
        with($localize = new Localize)
            ->model($this->model)
            ->title(Str::singular($this->title));

        // Make the sidebar
        $sidebar = new Sidebar;
        if (!$localize->hidden()) {
            $sidebar->addToEnd($localize);
        }

        // Render view
        return $this->populateView($this->show_view, [
            'item' => null,
            'localize' => $localize,
            'sidebar' => $sidebar,
            'parent_id' => $this->parent ? $this->parent->getKey() : null,
        ]);
    }
636158
public function create()
    {
        $parents = Page::getAllList();
        $banners = Banner::getAllList();

        return $this->view('titan::pages.create_edit', compact('parents', 'banners'));
    }
987351
protected function createHttpClientOption()
    {
        $options = [];
        if ($this->config->getDebug()) {
            $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');
            if (!$options[RequestOptions::DEBUG]) {
                throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
            }
        }

        return $options;
    }
54349
private function createDefaultOptionNodes()
    {
        $nodes = array();

        foreach ($this->defaults as $key => $value) {
            // Only scalars are allowed, the rest is ignored
            if (is_scalar($value)) {
                array_push($nodes, $this->createOptionNode($key, $value));
            }
        }

        return $nodes;
    }
153364
private function createDeleteOptions()
    {
        $deleteOptions = ['limit' => $this->limit];

        if (isset($this->options['collation'])) {
            $deleteOptions['collation'] = (object) $this->options['collation'];
        }

        return $deleteOptions;
    }
212440
private function createOptions() {

		$default = [

			CURLOPT_RETURNTRANSFER 	=> true,
			CURLOPT_HEADER 			=> true,
			CURLOPT_TIMEOUT			=> 30,
			CURLOPT_URL 			=> $this -> formatUrl(),
			CURLOPT_COOKIE			=> $this -> formatCookies(),
			CURLOPT_HTTPHEADER		=> $this -> headers
		];

		if('get' !== $this -> method) {
			$this -> options[CURLOPT_POSTFIELDS] = $this -> formatParams();
		}

		return $default + $this -> options;
	}
82004
public function addOptions($options)
    {
        foreach ($options as $key => $value) {
            $this->addOption($key, $value);
        }

        return $this;
    }
940849
public function createOptions(Array $options) {

		$this->options = [];

		foreach($options as $value => $label) {
			$this->appendOption(new RadioOptionElement($value, new LabelElement($label)));
		}
		
		return $this;

	}
104983
public function create()
    {
        $permission           = new Permission;
        $permission->resource = 'System';
        $roles                = Role::all();

        return view('administrator.permissions.create', compact('permission', 'roles'));
    }
267457
public function create()
    {
        $roles = Role::getAllLists();
        $parents = NavigationAdmin::getAllLists();

        return $this->view('titan::settings.navigation.add_edit')
            ->with('roles', $roles)
            ->with('parents', $parents);
    }
73059
public function create()
    {
        $header = '菜单管理';
        $description = '创建';
        return view('admin::system.menu-create', [
            'options' => Menu::selectOptions(),
            'permissions' => Permission::all(),
            'header' => $header,
            'description' => $description
        ]);
    }
214639
public function createDivider()
    {
        $element = new Element('div');
        $element->attributes->addAttributeClass('dropdown-divider');

        $this->childNodes->push($element);

        return $this->childNodes->last();
    }
656706
public function createBroccoli(){
		$broccoliInitializeOptions = $this->createBroccoliInitOptions();
		$broccoli = new \broccoliHtmlEditor\broccoliHtmlEditor();
		$broccoli->init($broccoliInitializeOptions);
		return $broccoli;
	}
79979
public static function default(): Options
    {
        $options = new static;
        $options->skipConstructor();
        $options->setPropertyAccessor(new PropertyAccessor());
        $options->setDefaultMappingOperation(new DefaultMappingOperation());
        $options->setNameResolver(new NameResolver());
        $options->registerObjectCrate(\stdClass::class);

        return $options;
    }
656424
protected function createComponentMenu(): Menu
	{
		$moduleMenu = $this->menuFactory->create();
		$moduleMenu->setTranslator($this->translator);
		$moduleMenu->setBaseUrl('cms.title', ":{$this->module}:Homepage:");
		return $moduleMenu;
	}
288869
public function createConfigForm() {
        $clz = static::class;
        if (isset(self::$forms[ $clz ])) {
            $form = self::$forms[ $clz ];
            $form->inflateByData(['dsCfg' => $this->option]);

            return $form;
        }

        return null;
    }