SilverStripe\AssetAdmin\Controller\AssetAdminFile
Update File dataobjects to be editable in this asset admin
Synopsis
class AssetAdminFile
extends DataExtension
{
- // members
- private static integer $insert_width = 600;
- private static integer $insert_height = 400;
- // methods
- public void updateCMSEditLink()
- public int|null getInsertWidth()
- public int getInsertHeight()
- protected array|null getInsertDimensions()
- public string humanizedChanges()
- public SS_List getFilesInUse()
- public int getDescendantFileCount()
- private array getDescendantFileIDs()
- public static array nestedFolderIDs()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $insert_height
—
int
Max height for inserted images - $insert_width
—
int
Max width for inserted images
Methods
private
- getDescendantFileIDs() — Recursively get the $ids of nested Files and Folders, including the original parent Folder
protected
- getInsertDimensions() — Get dimensions of this image sized within insert_width x insert_height
public
- getDescendantFileCount()
- getFilesInUse() — Get the list of all nested files in use
- getInsertHeight() — Calculate width to insert into html area
- getInsertWidth() — Calculate width to insert into html area
- humanizedChanges()
- nestedFolderIDs() — Get recursive parent IDs
- updateCMSEditLink()