concrete/src/File/Set/Set.php
public static function getByName($fsName, $uID = false)
    {
        $db = Database::connection();
        if ($uID !== false) {
            $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsName = ? AND uID = ?', array($fsName, $uID));
        } else {
            $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsName = ?', array($fsName));
        }
        if (is_array($row) && count($row)) {
            $fs = new static();
            $fs = array_to_object($fs, $row);

            return $fs;
        }
    }
public static function getByName($fsName, $uID = false)
    {
        $db = Database::connection();
        if ($uID !== false) {
            $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsName = ? AND uID = ?', array($fsName, $uID));
        } else {
            $row = $db->fetchAssoc('SELECT * FROM FileSets WHERE fsName = ?', array($fsName));
        }
        if (is_array($row) && count($row)) {
            $fs = new static();
            $fs = array_to_object($fs, $row);

            return $fs;
        }
    }
public static function getByName ( $ fsName , $ uID = false ) { $ db = Database :: connection ( ) ; if ( $ uID !== false ) { $ row = $ db -> fetchAssoc ( 'SELECT * FROM FileSets WHERE fsName = ? AND uID = ?' , array ( $ fsName , $ uID ) ) ; } else { $ row = $ db -> fetchAssoc ( 'SELECT * FROM FileSets WHERE fsName = ?' , array ( $ fsName ) ) ; } if ( is_array ( $ row ) && count ( $ row ) ) { $ fs = new static ( ) ; $ fs = array_to_object ( $ fs , $ row ) ; return $ fs ; } }
Get a file set object by a file name.

@param  string   $fsName
@param  int|bool $uID

@return Set
Get a file set object by a file name .