/** * * */ function __construct() { parent::__construct(); $this->javascript_callbacks = is_array($GLOBALS['JAVASCRIPT_CALLBACKS']) ? $GLOBALS['JAVASCRIPT_CALLBACKS'] : array('uninitialized', 'loading', 'loaded', 'interactive', 'complete', 'failure', 'success'); $this->ajax_options = array_merge(array('before', 'after', 'condition', 'url', 'asynchronous', 'method', 'insertion', 'position', 'form', 'with', 'update', 'script'), $this->javascript_callbacks); $this->javascript_path = dirname(__FILE__) . '/javascripts'; }
/** * @todo Document this method * @uses default_date_options * @uses default_field_options * @uses default_radio_options * @uses default_text_area_options */ function __construct($object_name, $attribute_name) { parent::__construct($object_name, $attribute_name); // Set default attributes for input fields $this->default_field_options = array_key_exists('DEFAULT_FIELD_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_FIELD_OPTIONS'] : array("size" => 30); // Set default attributes for radio buttons $this->default_radio_options = array_key_exists('DEFAULT_RADIO_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_RADIO_OPTIONS'] : array(); // Set default attributes for text areas $this->default_text_area_options = array_key_exists('DEFAULT_TEXT_AREA_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_TEXT_AREA_OPTIONS'] : array("cols" => 40, "rows" => 20); // Set default attributes for dates $this->default_date_options = array_key_exists('DEFAULT_Date_OPTIONS', $GLOBALS) ? $GLOBALS['DEFAULT_DATE_OPTIONS'] : array(":discard_type" => true); }
/** * @todo Document this method * * @uses javascript_default_sources */ function __construct() { parent::__construct(); $this->javascript_default_sources = array_key_exists('JAVASCRIPT_DEFAULT_SOURCES', $GLOBALS) ? $GLOBALS['JAVASCRIPT_DEFAULT_SOURCES'] : array('prototype', 'effects', 'controls', 'dragdrop'); }
/** * Constructor * * Construct an instance of Helpers with the same arguments * @param string Name of an ActiveRecord subclass * @param string Name of an attribute of $object */ function __construct($object_name = null, $attribute_name = null) { parent::__construct($object_name, $attribute_name); }