concrete/src/User/Group/Group.php
public static function getByName($gName)
    {
        $db = Database::connection();
        $row = $db->fetchAssoc('select * from ' . $db->getDatabasePlatform()->quoteSingleIdentifier('Groups') . ' where gName = ?', [$gName]);
        if ($row) {
            $g = new static();
            $g->setPropertiesFromArray($row);

            return $g;
        }
    }
public static function getByName($gName)
    {
        $db = Database::connection();
        $row = $db->fetchAssoc('select * from ' . $db->getDatabasePlatform()->quoteSingleIdentifier('Groups') . ' where gName = ?', [$gName]);
        if ($row) {
            $g = new static();
            $g->setPropertiesFromArray($row);

            return $g;
        }
    }
public static function getByName ( $ gName ) { $ db = Database :: connection ( ) ; $ row = $ db -> fetchAssoc ( 'select * from ' . $ db -> getDatabasePlatform ( ) -> quoteSingleIdentifier ( 'Groups' ) . ' where gName = ?' , [ $ gName ] ) ; if ( $ row ) { $ g = new static ( ) ; $ g -> setPropertiesFromArray ( $ row ) ; return $ g ; } }
Takes the name of a group and returns a group object.

@param string $gName

@return Group
Takes the name of a group and returns a group object .