Sunnysideup\SiteWideSearch\Helpers\FindEditableObjects
Synopsis
class FindEditableObjects
{
- // constants
- const CACHE_NAME = 'FindEditableObjectsCache';
- // members
- protected array $relationTypesCovered = ;
- protected array $excludedClasses = ;
- protected array $cache = ;
- private static integer $max_relation_depth = 3;
- private static array $valid_methods_edit = ;
- private static array $valid_methods_view = ;
- // methods
- public void getFileCache()
- public void initCache()
- public void saveCache()
- public void getCMSEditLink()
- public void getLink()
- protected void getLinkInner()
- protected void checkForValidMethods()
- protected void getRelations()
- protected void getValidMethods()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
Constants
Name | Value |
---|---|
CACHE_NAME | 'FindEditableObjectsCache' |
Members
private
- $max_relation_depth
- $valid_methods_edit
- $valid_methods_view
protected
- $cache
—
array
format is as follows: ```php [ 'valid_methods_edit' => [ ClassNameA => true, // tested and does not have any available methods ClassNameB => MethodName1, // tested found method MethodName1 that can be used. - $excludedClasses
- $relationTypesCovered
Methods
protected
- checkForValidMethods()
- getLinkInner() — returns an link to an object that can be viewed.
- getRelations()
- getValidMethods()
public
- getCMSEditLink() — returns an link to an object that can be edited in the CMS.
- getFileCache()
- getLink() — returns an link to an object that can be viewed.
- initCache()
- saveCache()