\AutomatedLink
Plugin: SEOToolbox Author: Dylan Grech Copyright: 2016
Automated Link is a dataobject that contains all the data
about a link that should be created automatically to a page
Synopsis
class AutomatedLink
extends DataObject
implements
PermissionProvider
{
- // members
- private static array $db = ;
- private static array $defaults = ;
- private static string $default_sort = 'Priority';
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static string $singular_name = 'Automated Link';
- private static string $plural_name = 'Automated Links';
- private static array $parsableFields = ;
- // methods
- public string PointsTo()
- public string Title()
- public String forTemplate()
- public void canView()
- public void canEdit()
- public void canDelete()
- public void canCreate()
- public void providePermissions()
- public void requireDefaultRecords()
- public String getHTML()
- public void getCMSFields()
- public void getCMSValidator()
- public void onBeforeWrite()
- public void CheckAndUpdateDestination()
- public static Boolean isFieldParsable()
- public Boolean canBeAdded()
- public static DOMDocument constructDOMDocument()
- public static array getAllDatabaseFields()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $db
- $default_sort
- $defaults
- $has_one
- $parsableFields
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
Methods
public
- CheckAndUpdateDestination() — Checks if the destination is a redirector page if so it updates it to the destination of the redirector page
- PointsTo() — Get the url of the page linked to this object
- Title() — Return the phrase set for this object
- canBeAdded() — Checks if this link can be added to the provided page and field
- canCreate()
- canDelete()
- canEdit()
- canView()
- constructDOMDocument() — Turn the string passed into a DOMDocument object
- forTemplate() — Return the rendered version of this object
- getAllDatabaseFields() — Returns an array with all the database fields $class has
- getCMSFields()
- getCMSValidator()
- getHTML() — Returns the HTML Representation of this object
- isFieldParsable() — Checks if the field is parable
- onBeforeWrite() — Save the Global Settings into the Global Auto Link Settings Object
- providePermissions()
- requireDefaultRecords()