Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing deprecated FileList as it relies on TableListField

This has been moved to "legacytablefields" module
https://github.com/silverstripe-labs/legacytablefields
  • Loading branch information...
commit 4c73f23ddbadc82cc3c23032a08ea9283445f36a 1 parent 8b561b7
@halkyon halkyon authored
Showing with 0 additions and 20 deletions.
  1. +0 −20 code/forms/FileList.php
View
20 code/forms/FileList.php
@@ -1,20 +0,0 @@
-<?php
-/**
- * A FormField showing a list of files
- * @package cms
- * @subpackage assets
- */
-class FileList extends TableListField {
- // bdc: added sort by Title as default behaviour
- protected $folder;
- public function __construct($name, $folder) {
- $this->folder = $folder;
- parent::__construct($name, "File", array("Title" => "Title", "LinkedURL" => "URL"), "", "Title");
- $this->Markable = true;
- }
-
- public function sourceItems() {
- return DataObject::get("File", "\"ParentID\" = '" . $this->folder->ID . "' AND \"ClassName\" <> 'Folder'", '"Title"');
- }
-}
-
Please sign in to comment.
Something went wrong with that request. Please try again.