SilverWare\Google\Maps\Model\Marker
An extension of the data object class for a map marker.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2018 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class Marker
extends DataObject
{
- // members
- private static string $singular_name = 'Marker';
- private static string $plural_name = 'Markers';
- private static string $table_name = 'SilverWare_GoogleMap_Marker';
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public array toMap()
- public boolean getShowInfoWindow()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
—
array
Maps field names to field types for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $has_one
—
array
Defines the has-one associations for this object. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $summary_fields
—
array
Defines the summary fields of this object. - $table_name
—
string
Defines the table name to use for this object.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getShowInfoWindow() — Answers true if the info window is to be shown.
- toMap() — Converts the receiver to an array representation.