\DataObjectAsPage
Synopsis
class DataObjectAsPage
extends DataObject
{
- // members
- private static defind $listing_page_class = 'DataObjectAsPageHolder';
- private static array $db = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static array $indexes = ;
- private static string $default_sort = 'Created DESC';
- // methods
- public void MenuTitle()
- public string getMetaTitle()
- public void setMetaTitle()
- public boolean canView()
- public boolean canPublish()
- public boolean canDeleteFromLive()
- public FieldList getCMSFields()
- public static void enable_versioning()
- public boolean getisVersioned()
- public void Breadcrumbs()
- public void MetaTags()
- public void getStatus()
- public boolean isPublished()
- public void hasChangesOnStage()
- public void getListingPage()
- public void Link()
- public string AbsoluteLink()
- public void LinkingMode()
- public void onBeforeWrite()
- public void LookForExistingURLSegment()
- public string generateURLSegment()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $default_sort
- $defaults
- $indexes
- $listing_page_class — defind
- $summary_fields
Methods
public
- AbsoluteLink() — Create an absolute link to the DOAP
- Breadcrumbs() — Produce the correct breadcrumb trail for use on the DataObject Item Page
- Link() — Generate the link to this DataObject Item page
- LinkingMode() — Return the correct linking mode, for use in menus
- LookForExistingURLSegment() — Check if there is already a DOAP with this URLSegment
- MenuTitle() — Provide compatability with Menu loops in templates
- MetaTags() — Generate custom metatags to display on the DataObject Item page
- canDeleteFromLive() — Check if the member can delete live content
- canPublish() — Check if the member can publish
- canView() — Check if the member can view
- enable_versioning() — Utility function to enable versioning in a simple call
- generateURLSegment() — Generate a URL segment based on the title provided.
- getCMSFields() — Overload getCMSFields for our custom fields
- getListingPage() — Get the listing page to view this Event on (used in Link functions below)
- getMetaTitle() — Override getMetaTitle to keep DB cleaner
- getStatus()
- getisVersioned() — Check if the DOAP is versioned
- hasChangesOnStage() — Check whether this DO has changes which are not published
- isPublished() — Check if this page has been published.
- onBeforeWrite() — Set URLSegment to be unique on write
- setMetaTitle() — Override getMetaTitle to keep DB cleaner