Adds a new group for options.

@param  string  $str_alias Conding name of the group, to identify it when defining options.
@param  string  $str_name  Optional name to display while rendering help.
@access public
@return Options
322711
public function addGroup($str_alias, $str_name = null)
    {
        if (!isset(self::$arr_group[$str_alias])) {
            $grp = new \stdClass();
            $grp->name = (strlen($str_name)) ? $str_name : null;
            $grp->args = array();

            self::$arr_group[$str_alias] = $grp;
        }

        return $this;
    }
3748
public function addRadioGroup(string $name) : Group\RadioGroup
    {
        $radioGroup = new Group\RadioGroup($this, $name);
        $this->addComponent($name, $radioGroup);

        return $radioGroup;
    }
1029503
protected function AddOption(string $name, string $default_value = null, string $desc = '', string $short_name = null) : void
    {
        $CommandOption  = new CommandOption($name, $default_value, $desc, $short_name);
        $this->options()->append($CommandOption);
    }
1142540
public function option($type, $name = null, $alias = null) {
        $option = new Option($type, $name, $alias);
        $this->addOption($option);

        return $option;
    }
690745
public function prepend($str)
    {
        $value = $this->val();
        $this->val($str . $value);

        return $this;
    }
244226
public function addAliases($alias)
    {
        foreach (func_get_args() as $alias) {
            $this->aliases[$alias] = true;
        }
        return $this;
    }
662900
public static String add( String str, String str2 ) {
        return FastStringUtils.noCopyStringFromChars(
                Chr.add(
                 FastStringUtils.toCharArray(str),
                 FastStringUtils.toCharArray(str2) )
        );
    }
738767
public function sort($str_field, $str_direction = self::DESC)
    {
        $this->arr_sorts[] = [$str_field, $str_direction];
        return $this;
    }
1310170
public static function fromName($str){
		
		$strName = \strtoupper(\trim($str));
		
		foreach(static::getConstants() as $name => $value){
			if($strName === \strtoupper($name)){
				return new static($value);
			}
		}
		
		return null;
		
	}
924723
public String replaceAliaces(String str) {
		if(str == null) return str;
		// for performance
		if(str.indexOf(CommonDefs.ALIAS_FIRST_CHAR) < 0) return str;
		
		PriorityQueue<AliasDefinition> aliasQueue = new PriorityQueue<AliasDefinition>(11, new Comparator<AliasDefinition>() {
			public int compare(AliasDefinition alias1, AliasDefinition alias2) {
				return alias2.getName().length() - alias1.getName().length();
			}
		});
		
		for(TableDefinition tableDef : getTableDefinitions().values()) {
			for(AliasDefinition aliasDef : tableDef.getAliasDefinitions()) {
				aliasQueue.add(aliasDef);					
			}
		}
		while(true) {
			String newstring = str; 
			 while (aliasQueue.size() != 0) {			        
				AliasDefinition aliasDef = aliasQueue.poll();
		        newstring = newstring.replace(aliasDef.getName(), aliasDef.getExpression());
			}	 
			if(newstring.equals(str)) break;
			str = newstring;
		}
		return str;
	}
266726
public function createEntry($group_name, array $options)
    {
        if (! $this->hasGroup($group_name)) {
            throw new \RuntimeException('Menu Group "'.$group_name.'" not found.');
        }

        $entry = new MenuEntry($this->entryOptionsResolver->resolve($options));

        $group = $this->getGroup($group_name);
        $group->addEntry($entry);
    }
247034
public final <T> void addOption(Class<T> cls, String name, String description, String exclusiveGroup)
    {
        addOption(cls, name, description, exclusiveGroup, true);
    }
505162
def add_member(self, service_name, servicegroup_name):
        
        servicegroup = self.find_by_name(servicegroup_name)
        if not servicegroup:
            servicegroup = Servicegroup({'servicegroup_name': servicegroup_name,
                                         'alias': servicegroup_name,
                                         'members': service_name})
            self.add(servicegroup)
        else:
            servicegroup.add_members(service_name)
169592
protected static function parseAs($str, $alias1 = null) {
        $table = preg_split('#\b(as|\s+)\b#i', trim($str));
        if (count($table) == 1) {
            $name  = $table [0];
            $alias = $alias1;
        } else {
            $name  = $table [0];
            $alias = trim(array_pop($table));
        }

        return [trim($name), trim($alias)];
    }
890725
def insert_option_group(self, idx, *args, **kwargs):
        """"""
        group = self.add_option_group(*args, **kwargs)

        self.option_groups.pop()
        self.option_groups.insert(idx, group)

        return group
1279361
function alias($name,$params=NULL,$lang=NULL) {
		if (in_array($name,$this->global_aliases))
			return $this->f3->alias($name,$params);
		if (!is_array($params))
			$params=$this->f3->parse($params);
		if (!$lang)
			$lang=$this->current;
		if (isset($this->rules[$lang][$name]) && $this->rules[$lang][$name]===FALSE)
			return FALSE;
		$url=isset($this->rules[$lang][$name])?
			$this->rules[$lang][$name]:@$this->_aliases[$name];
		if (!$url)
			user_error(sprintf(\Base::E_Named,$name),E_USER_ERROR);
		return $this->f3->build(rtrim('/'.$lang.$url,'/'),$params);
	}
585645
function addItem($access_name, $text, $url) {
        Map::instance()
           ->add(
               $access_name, $text, $url
           );
        return $this;
    }