function prepare()
 {
     $this->attributes['type'] = 'checkbox';
     $grid_tag =& $this->find_parent_by_class('grid_list_tag');
     $grid_tag->set_form_required();
     parent::prepare();
 }
 function generate_contents(&$code)
 {
     if (isset($this->attributes['default_value'])) {
         $code->write_php($this->get_component_ref_code() . '->set_default_value("' . $this->attributes['default_value'] . '");');
     }
     $code->write_php($this->get_component_ref_code() . '->render_contents();');
     parent::generate_contents($code);
 }
 function pre_generate(&$code)
 {
     $name = '$' . $code->get_temp_variable();
     $parent = $this->get_dataspace_ref_code();
     $ref = $this->get_component_ref_code();
     $code->write_php("\r\n\r\n    if ({$name} = {$parent}->get('" . $this->attributes['name'] . "'))\r\n      {$ref}->set_attribute('name', {$name});\r\n    ");
     parent::pre_generate($code);
 }
  function pre_generate(&$code)
  {
    if(isset($this->attributes['attach_form_prefix']))
      $code->write_php($this->get_component_ref_code() . '->attach_form_prefix(true);');
    else
      $code->write_php($this->get_component_ref_code() . '->attach_form_prefix(false);');

    parent :: pre_generate($code);
  }
 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();
 }
 function generate_contents(&$code)
 {
     parent::generate_contents($code);
     $code->write_php($this->get_component_ref_code() . '->render_js_checkbox();');
 }
 function post_generate(&$code)
 {
     parent::post_generate($code);
     $code->write_php($this->get_component_ref_code() . '->render_control();');
 }
 function generate_contents(&$code)
 {
     parent::generate_contents($code);
     $code->write_php($this->get_component_ref_code() . '->render_color_picker();');
 }
	function generate_contents(&$code)
	{
		parent :: generate_contents($code);
		
		$code->write_php($this->get_component_ref_code() . '->render_file_select();');
	}
 function pre_generate(&$code)
 {
     $code->write_php($this->get_component_ref_code() . '->init_richedit();');
     parent::pre_generate($code);
 }