openlayers_behavior

We define base classes in the core module. All other parent classes can be autoloaded through ctools.

Hierarchy

Functions & methods

NameDescription
openlayers_behavior::js_dependency
openlayers_behavior::options_form
openlayers_behavior::options_init
openlayers_behavior::render
openlayers_behavior::__construct

./openlayers.module, line 786

View code
<?php
class openlayers_behavior {
  var $options, $map;

  function __construct($options = array(), $map = array()) {
    $this->options = $options + $this->options_init();
    $this->map = $map;
  }

  /*
   * @return array of JavaScript functions required to be defined
   * in order for this function to work
   */
  function js_dependency() {
    return array();
  }

  function options_init() {
    return array();
  }

  /*
   * @param $defaults default values for the form
   * @return a FormAPI form
   */
  function options_form($defaults = array()) {
    return array();
  }

  function render(&$map) { }
}
?>