\RegisterDataPage
This class is used to model the register metadata form and it's behaviour.
The form can be customised and overwritten in the controller, but the
page stores the information of the registered GeoNetwork Catalogue.
This enables us to use multiple search pages, running queries on different
Geonetwork servers.
Synopsis
class RegisterDataPage
extends Page
{
- // members
- public static array $db = ;
- public static string $email_sender = 'testemails@silverstripe.com';
- // methods
- public static void get_email_sender()
- public string set_email_sender()
- public void getCMSFields()
- public void onBeforeWrite()
Hierarchy
Extends
- Page
Members
public
- $db
—
array
Static variable to store data alongside with the page instance. - $email_sender
—
string
This email address is used as the sender for all emails we send off.
Methods
public
- getCMSFields() — Overwrites SiteTree.getCMSFields to change the CMS form behaviour, i.e. by adding form fields for the additional attributes defined in {@link RegisterDataPage::$db}.
- get_email_sender() — Return the email address of the sender.
- onBeforeWrite() — Make sure Geonetwork url ends with an /.
- set_email_sender() — Sets the static sender-email address. Applies a regular expression validation to check if the email format is valid.