\StaticSiteContentSource_ImportSchema
A collection of ImportRules that apply to some or all of the content being imported.
Synopsis
class StaticSiteContentSource_ImportSchema
extends DataObject
{
- // members
- public static string $default_applies_to = '.*';
- private static array $db = ;
- public static array $summary_fields = ;
- public static array $field_labels = ;
- private static string $default_sort = "Order";
- private static array $has_one = ;
- private static array $has_many = ;
- // methods
- public string getTitle()
- public FieldList getCMSFields()
- public void requireDefaultRecords()
- public array getImportRules()
- public ValidationResult validate()
- public mixed validateMimes()
- public mixed validateUrlPattern()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
608 | |
615 | prolly just replace this wih a regex.. |
Members
private
- $db — array
- $default_sort — string
- $has_many — array
- $has_one — array
public
- $default_applies_to
—
string
Default - $field_labels — array
- $summary_fields — array
Methods
public
- getCMSFields()
- getImportRules() — Return the import rules in a format suitable for configuring StaticSiteContentExtractor.
- getTitle()
- requireDefaultRecords()
- validate()
- validateMimes() — Validate user-inputted mime-types until we use some sort of multi-select list in the CMS to select from (@todo).
- validateUrlPattern() — Prevent ugly CMS console errors if user-defined regex's are not 100% PCRE compatible.