public function getByID($id) { $db = Loader::db(); $r = $db->GetRow("select * from FileStorageLocations where fslID = ?", array($id)); if (is_array($r) && $r['fslID'] == $id) { $obj = new FileStorageLocation(); $obj->setPropertiesFromArray($r); return $obj; } }