lib/private/Group/Database.php
/**
	 * Try to create a new group
	 * @param string $gid The name of the group to create
	 * @return bool
	 *
	 * Tries to create a new group. If the group name already exists, false will
	 * be returned.
	 */
Try to create a new group
@param string $gid The name of the group to create
@return bool

Tries to create a new group. If the group name already exists, false will
be returned.
Try to create a new group @param string $gid The name of the group to create @return bool Tries to create a new group . If the group name already exists false will be returned .
public function createGroup( $gid ) {
		$this->fixDI();
		$result = $this->dbConn->insertIfNotExist('*PREFIX*groups', [
			'gid' => $gid,
		]);
		$this->groupCache[$gid] = $gid;
		return $result === 1;
	}
public function createGroup ( $ gid ) { $ this -> fixDI ( ) ; $ result = $ this -> dbConn -> insertIfNotExist ( '*PREFIX*groups' , [ 'gid' => $ gid , ] ) ; $ this -> groupCache [ $ gid ] = $ gid ; return $ result === 1 ; }
Try to create a new group
 @param string $gid The name of the group to create
 @return bool
Try to create a new group @param string $gid The name of the group to create @return bool
// Add group // Add to cache