Heyday\SilverStripeRedirects\Code\RedirectUrl
Class RedirectUrl
Synopsis
class RedirectUrl
extends DataObject
implements
PermissionProvider
{
- // constants
- const PERMISSION = 'MANAGE_REDIRECTS';
- // members
- private static string $table_name = 'RedirectUrl';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- protected CachedDataSource $dataSource;
- // methods
- public string getTitle()
- public void setDataSource()
- public FieldList getCMSFields()
- public string|bool getFromLink()
- public string|bool getToLink()
- public int getStatusCode()
- protected string|bool getLink()
- protected bool|SiteTree getLinkRelation()
- public RedirectUrlValidator getCMSValidator()
- public array providePermissions()
- public bool|int canEdit()
- public bool|int canCreate()
- public bool|int canDelete()
- public bool|int canView()
- protected bool|int hasPermission()
- protected void onBeforeWrite()
- protected void onAfterWrite()
- protected void onAfterDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Security\PermissionProvider
Constants
Name | Value |
---|---|
PERMISSION | 'MANAGE_REDIRECTS' |
Members
private
- $db — array
- $has_one — array
- $searchable_fields — array
- $summary_fields — array
- $table_name — string
protected
Methods
protected
- getLink()
- getLinkRelation()
- hasPermission()
- onAfterDelete()
- onAfterWrite()
- onBeforeWrite() — Clear out from and to manual links if we have a relation
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- getCMSValidator()
- getFromLink()
- getStatusCode() — Returns the right status code depending on type of redirect.
- getTitle()
- getToLink()
- providePermissions()
- setDataSource()