concrete/src/File/Set/Set.php
public static function getByID($fsID)
    {
        $db = Database::connection();
        $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsID = ?', array($fsID));
        if (is_array($row)) {
            $fs = new static();
            $fs = array_to_object($fs, $row);
            if ($row['fsType'] == static::TYPE_SAVED_SEARCH) {
                $row2 = $db->GetRow(
                    'SELECT fsSearchRequest, fsResultColumns FROM FileSetSavedSearches WHERE fsID = ?',
                    array($fsID));
                $fs->fsSearchRequest = @unserialize($row2['fsSearchRequest']);
                $fs->fsResultColumns = @unserialize($row2['fsResultColumns']);
            }

            return $fs;
        }
    }
public static function getByID($fsID)
    {
        $db = Database::connection();
        $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsID = ?', array($fsID));
        if (is_array($row)) {
            $fs = new static();
            $fs = array_to_object($fs, $row);
            if ($row['fsType'] == static::TYPE_SAVED_SEARCH) {
                $row2 = $db->GetRow(
                    'SELECT fsSearchRequest, fsResultColumns FROM FileSetSavedSearches WHERE fsID = ?',
                    array($fsID));
                $fs->fsSearchRequest = @unserialize($row2['fsSearchRequest']);
                $fs->fsResultColumns = @unserialize($row2['fsResultColumns']);
            }

            return $fs;
        }
    }
public static function getByID ( $ fsID ) { $ db = Database :: connection ( ) ; $ row = $ db -> fetchAssoc ( 'SELECT * FROM FileSets WHERE fsID = ?' , array ( $ fsID ) ) ; if ( is_array ( $ row ) ) { $ fs = new static ( ) ; $ fs = array_to_object ( $ fs , $ row ) ; if ( $ row [ 'fsType' ] == static :: TYPE_SAVED_SEARCH ) { $ row2 = $ db -> GetRow ( 'SELECT fsSearchRequest, fsResultColumns FROM FileSetSavedSearches WHERE fsID = ?' , array ( $ fsID ) ) ; $ fs -> fsSearchRequest = @ unserialize ( $ row2 [ 'fsSearchRequest' ] ) ; $ fs -> fsResultColumns = @ unserialize ( $ row2 [ 'fsResultColumns' ] ) ; } return $ fs ; } }
Get a file set object by a file set's id.

@param int $fsID

@return Set
Get a file set object by a file set s id .