class openlayers_simple in Openlayers 7.2
OpenLayers Box
Hierarchy
- class \boxes_box
- class \openlayers_simple
Expanded class hierarchy of openlayers_simple
1 string reference to 'openlayers_simple'
- openlayers_boxes_plugins in ./
openlayers.module - Implements hook_boxes_plugins().
File
- plugins/
boxes/ openlayers_simple.inc, line 6
View source
class openlayers_simple extends boxes_box {
/**
* Implementation of boxes_content::options_defaults().
*/
public function options_defaults() {
return array(
'map' => '',
);
}
/**
* Implementation of boxes_content::options_form().
*/
public function options_form(&$form_state) {
$form = array();
// Map objects
$form['map'] = array(
'#type' => 'select',
'#title' => t('Map'),
'#description' => t('This is map that will be used to render the view.'),
'#options' => openlayers_map_options(),
'#default_value' => $this->options['map'] ? $this->options['map'] : variable_get('openlayers_default_map', 'default'),
);
return $form;
}
/**
* Implementation of boxes_content::options_form().
*/
public function render() {
$title = isset($this->title) ? check_plain($this->title) : NULL;
$map = openlayers_map_load($this->options['map']);
return array(
'delta' => $this->delta,
// Crucial.
'title' => $title,
'subject' => $title,
'content' => openlayers_render_map($map, $map->name),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
boxes_box:: |
static | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | property | ||
boxes_box:: |
public | function | Returns the block cache settings for this box. Subclasses can override this to perform more intricate operations around deciding the cache settings of the specific box instance. | |
boxes_box:: |
public | function | Delete a box. | |
boxes_box:: |
public static | function | Instantiate, populate and return a box object. | |
boxes_box:: |
public static | function | Load existing box by its unique identifier $delta. | |
boxes_box:: |
public static | function | Reset the boxes cache. | |
boxes_box:: |
public | function | Save a box. | |
boxes_box:: |
public | function | Declare if the box should use a multistep form for the create form. | |
boxes_box:: |
protected | function | Create a new box. | |
openlayers_simple:: |
public | function |
Implementation of boxes_content::options_defaults(). Overrides boxes_box:: |
|
openlayers_simple:: |
public | function |
Implementation of boxes_content::options_form(). Overrides boxes_box:: |
|
openlayers_simple:: |
public | function |
Implementation of boxes_content::options_form(). Overrides boxes_box:: |