function prepare() { $this->attributes['type'] = 'checkbox'; $grid_tag =& $this->find_parent_by_class('grid_list_tag'); $grid_tag->set_form_required(); parent::prepare(); }
function prepare() { switch (DEFAULT_RICHEDIT) { case 'htmlarea': $this->runtime_component_path = '/core/template/components/form/richedit/htmlarea_component'; break; case 'fckeditor': $this->runtime_component_path = '/core/template/components/form/richedit/fckeditor_component'; break; case 'wysiwygpro': $this->runtime_component_path = '/core/template/components/form/richedit/wysiwygpro_component'; break; default: $this->runtime_component_path = '/core/template/components/form/richedit/richedit_component'; break; } parent::prepare(); }
/** * Sets the runtime_component_path property, depending on the type of * Input tag * * @return void * @access protected */ function prepare() { $type = strtolower($this->attributes['type']); switch ($type) { case 'text': $this->runtime_component_path = '/core/template/components/form/input_text_component'; break; case 'password': $this->runtime_component_path = '/core/template/components/form/input_password_component'; break; case 'checkbox': $this->runtime_component_path = '/core/template/components/form/input_password_component'; break; case 'submit': $this->runtime_component_path = '/core/template/components/form/input_submit_component'; break; case 'radio': $this->runtime_component_path = '/core/template/components/form/input_radio_component'; break; case 'reset': $this->runtime_component_path = '/core/template/components/form/input_reset_component'; break; case 'file': $this->runtime_component_path = '/core/template/components/form/input_file_component'; break; case 'hidden': $this->runtime_component_path = '/core/template/components/form/input_hidden_component'; break; case 'image': $this->runtime_component_path = '/core/template/components/form/input_image_component'; break; case 'button': $this->runtime_component_path = '/core/template/components/form/input_button_component'; break; default: error('UNKNOWNINPUTYPE', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__, array('file' => $this->source_file, 'line' => $this->starting_line_no, 'type' => $type)); } parent::prepare(); }