concrete/src/User/Group/Group.php
public static function getByID($gID)
    {
        $db = Database::connection();
        $g = CacheLocal::getEntry('group', $gID);
        if (is_object($g)) {
            return $g;
        }

        $row = $db->fetchAssoc('select * from ' . $db->getDatabasePlatform()->quoteSingleIdentifier('Groups') . ' where gID = ?', [$gID]);
        if ($row) {
            $g = \Core::make('\Concrete\Core\User\Group\Group');
            $g->setPropertiesFromArray($row);
            CacheLocal::set('group', $gID, $g);

            return $g;
        }
    }
public static function getByID($gID)
    {
        $db = Database::connection();
        $g = CacheLocal::getEntry('group', $gID);
        if (is_object($g)) {
            return $g;
        }

        $row = $db->fetchAssoc('select * from ' . $db->getDatabasePlatform()->quoteSingleIdentifier('Groups') . ' where gID = ?', [$gID]);
        if ($row) {
            $g = \Core::make('\Concrete\Core\User\Group\Group');
            $g->setPropertiesFromArray($row);
            CacheLocal::set('group', $gID, $g);

            return $g;
        }
    }
public static function getByID ( $ gID ) { $ db = Database :: connection ( ) ; $ g = CacheLocal :: getEntry ( 'group' , $ gID ) ; if ( is_object ( $ g ) ) { return $ g ; } $ row = $ db -> fetchAssoc ( 'select * from ' . $ db -> getDatabasePlatform ( ) -> quoteSingleIdentifier ( 'Groups' ) . ' where gID = ?' , [ $ gID ] ) ; if ( $ row ) { $ g = \ Core :: make ( '\Concrete\Core\User\Group\Group' ) ; $ g -> setPropertiesFromArray ( $ row ) ; CacheLocal :: set ( 'group' , $ gID , $ g ) ; return $ g ; } }
Takes the numeric id of a group and returns a group object.

@param string $gID

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