Rename the group.

@param string $nameSingular
@param string $namePlural
@return $this
546605
public function rename($nameSingular, $namePlural)
    {
        $this->name_singular = $nameSingular;
        $this->name_plural = $namePlural;

        $this->raise(new Renamed($this));

        return $this;
    }
1189364
public function group($namespace, callable $func)
    {
        if (empty($namespace)) {
            throw new \InvalidArgumentException(Lang::get('_NOT_ALLOW_EMPTY_', '$namespace'));
        }

        self::$group = trim($namespace, '/');

        $func();

        self::$group = false;
    }
1357701
public function group($prefix, $fnc)
    {
        $this->routePrefix = $prefix;
        if ($fnc instanceof \Closure) {
            $fnc();
        } else {
            throw new \InvalidArgumentException('Callable do metodo group DEVE ser um Closure');
        }
        $this->routePrefix = null;
        $this->groupMiddlewares[$prefix] = [];
        $this->currentGroup = $prefix;

        return $this;
    }
694702
function rename(newName) {
      newName = newName.replace(/[\.\/]/g, '');
      if (this.isRoot()) {
        this._name = newName;
      } else {
        var newPath = [this.parent.path(), newName].filter(function (e) {
          return e !== '';
        }).join('.');
        this.moveTo(newPath);
      }
    }
780933
private function renameOrderByFields(SelectQuery $query, $namesMap = null, $originalSource = null) {
        if($namesMap == null) {
            $namesMap = $this->getColumnNames();
        }
        $orderByFields = &$query->getOrderByFields();
        if (!empty($orderByFields)) {
            foreach ($orderByFields as &$orderByField) {
                $newName = $this->getFieldNewName($orderByField->field, $namesMap, $originalSource, $query->getTable());
                if($newName != null) {
                    $orderByField->field = $newName;
                }
            }
        }
    }
16036
def RenameGroup(r, group, new_name):
    

    body = {
        "new_name": new_name,
    }

    return r.request("put", "/2/groups/%s/rename" % group, content=body)
90752
public function renameTable(string $table, string $name)
    {
        $result = $this->connection->schemaCompiler()->renameTable($table, $name);
        $this->connection->command($result['sql'], $result['params']);
        $this->tableList = null;
        unset($this->columns[strtolower($table)]);
    }
1064887
private function renameJoinFields(SelectQuery $query, $namesMap = null, $originalSource = null) {
        if($namesMap == null) {
            $namesMap = $this->getColumnNames();
        }
        $joins = &$query->getJoins();
        if(!empty($joins)) {
            foreach ($joins as &$join) {
                $this->renameConditionFields($join, $namesMap, $originalSource, $query->getTable());
            }
        }
    }
501012
public function rename($dn, $name, $deleteOldRdn = false)
    {
        return new LdifEntryModRdn($dn, null, $name, $deleteOldRdn);
    }
222147
public function name( $nameOrInitials ) {
		$nameOrInitials = $this->translate( $nameOrInitials );
		$this->name     = $nameOrInitials;
		$this->initials_generator->name( $nameOrInitials );

		return $this;
	}
902635
public function renameTable($oldTableName, $newTableName)
    {
        if (!$this->hasTable($oldTableName)) {
            throw new LogicException('Table ' . $oldTableName . ' does not exist.');
        }

        return $this->query("ALTER TABLE \"$oldTableName\" RENAME \"$newTableName\"");
    }
511272
def rename_group(self, group, newname):
        

        if isinstance(group, basestring):
            group = self.get_contact(group)

        method, url = get_URL('group_update')

        payload = {
            'apikey': self.config.get('apikey'),
            'logintoken': self.session.cookies.get('logintoken'),
            'contactgroupid': group['contactgroupid'],
            'name': newname
            }

        res = getattr(self.session, method)(url, params=payload)

        if res.status_code == 200:
            return True

        hellraiser(res)
638150
function setNextMapIdent($ident, $multicall = false)
    {
        if (!is_string($ident)) {
            throw new InvalidArgumentException('ident = ' . print_r($ident, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($ident), $multicall);
    }
1240339
public function renameName($nameIndex, $newName)
    {
        foreach ($this->lines as $line) {
            $line->renameName($nameIndex, $newName);
        }
    }
209426
public function setNewlineTokenName(string $name) : BasicLexer
    {
        if (strlen($name) == 0) {
            throw new \InvalidArgumentException('The name of the newline token must be not empty.');
        }

        $this->newlineTokenName = $name;

        return $this;
    }
229845
function rename_group($gid, $name, &$new_gid)
    {
        // make sure we have a unique name
        $name = $this->unique_groupname($name);

        $sql_result = $this->db->query(
            "UPDATE " . $this->db->table_name($this->db_groups, true).
            " SET `name` = ?, `changed` = ".$this->db->now().
            " WHERE `contactgroup_id` = ?".
                " AND `user_id` = ?",
            $name, $gid, $this->user_id
        );

        return $this->db->affected_rows($sql_result) ? $name : false;
    }
889275
public function renameMask(ResourceType $resourceType, $currentName, $newName)
    {
        $toRename = $this->getDecoder($resourceType, $currentName);
        if (!empty($toRename)) {
            $toRename->setName($newName);
            $this->om->persist($toRename);
        }
    }