SilverWare\AGLS\Extensions\PageExtension
An extension which adds AGLS metadata to pages.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class PageExtension
extends Extension
{
- // constants
- const AGGREGATION_LEVEL_ITEM = 'item';
- const AGGREGATION_LEVEL_COLLECTION = 'collection';
- // methods
- public string getAGLSCreator()
- public string getAGLSPublisher()
- public string getAGLSTitle()
- public string getAGLSSubject()
- public DBDatetime getAGLSCreated()
- public string getAGLSCreatedFormat()
- public string getAGLSCreatedFormatted()
- public DBDatetime getAGLSModified()
- public string getAGLSModifiedFormat()
- public string getAGLSModifiedFormatted()
- public string getAGLSIdentifier()
- public string getAGLSDescription()
- public string getAGLSLanguage()
- public string getAGLSAggregationLevel()
- public void MetaTags()
- public void addMetaTag()
- public string getMetaTag()
Hierarchy
Extends
- SilverStripe\Core\Extension
Constants
Name | Value |
---|---|
AGGREGATION_LEVEL_ITEM | 'item' |
AGGREGATION_LEVEL_COLLECTION | 'collection' |
Methods
public
- MetaTags() — Appends the additional AGLS tags to the provided meta tags.
- addMetaTag() — Appends a meta tag with the given name, content and scheme values to the provided tags variable.
- getAGLSAggregationLevel() — Answers the language for the AGLS aggregation level.
- getAGLSCreated() — Answers the created date for the AGLS meta tag.
- getAGLSCreatedFormat() — Answers the format for the created date.
- getAGLSCreatedFormatted() — Formats the created date using the given format, or a default format.
- getAGLSCreator() — Answers the creator for the AGLS meta tag.
- getAGLSDescription() — Answers the description for the AGLS meta tag.
- getAGLSIdentifier() — Answers the identifier for the AGLS meta tag.
- getAGLSLanguage() — Answers the language for the AGLS meta tag.
- getAGLSModified() — Answers the modified date for the AGLS meta tag.
- getAGLSModifiedFormat() — Answers the format for the modified date.
- getAGLSModifiedFormatted() — Formats the modified date using the given format, or a default format.
- getAGLSPublisher() — Answers the publisher for the AGLS meta tag.
- getAGLSSubject() — Answers the subject for the AGLS meta tag.
- getAGLSTitle() — Answers the title for the AGLS meta tag.
- getMetaTag() — Answers a meta tag with the given name, content and scheme values.