\YearCalendarImport
Synopsis
class YearCalendarImport
extends DataObject
{
- // constants
- const HEADERCELL = 'Titel';
- // members
- private static string $singular_name = 'Year Calender Import';
- private static string $plural_name = 'Year Calender Imports';
- private static array $summary_fields = ;
- private static array $has_one = ;
- // methods
- public void canView()
- public void canEdit()
- public void canDelete()
- public void getCMSFields()
- public void onAfterWrite()
- public array|string fieldLabels()
- public string Name()
- protected void processImport()
- protected string getExtensionForFilePath()
- protected SimpleProduct ProductFactory()
- protected DateTimeHelper createDateTimeFromCells()
- protected bool|null createBoolFromCell()
- protected string getProperContent()
- protected ArrayList getTagsByCell()
- public Boolean canCreate()
Hierarchy
Extends
- DataObject
Constants
Name | Value |
---|---|
HEADERCELL | 'Titel' |
Members
private
- $has_one
- $plural_name
- $singular_name
- $summary_fields
Methods
protected
- ProductFactory()
- createBoolFromCell() — Create a boolean value from any given parameter by comparing them to given values for true and false
- createDateTimeFromCells() — Create a DateTime object from two strings representing date and time
- getExtensionForFilePath() — Retrieve the extension for the given path
- getProperContent() — Retrieve proper content from given string
- getTagsByCell() — Return a list of AgendaTags by cell value
- processImport() — Processed a file for import
public
- Name() — Retrieve the file name for this import
- canCreate() — Prevent CMS users from creating more than one entry.
- canDelete()
- canEdit()
- canView()
- fieldLabels() — Dynamic field labels
- getCMSFields()
- onAfterWrite()