<?php
class user_form_options extends myQuicty {

function __construct($page) {
	parent::__construct();
	$this->page = $page;
	$this->form = $this->page->form;
}

function set_form_options() {
	$this->form->set_base_link_addr(quicty_base_url().'<!--{$folder_name}-->/user/');
	$this->form->set_restart_link_addr(quicty_base_url().'<!--{$folder_name}-->/user/');
	$this->form->set_button_status('use_confirm',false);
	$this->form->set_button_label('delete_confirm',$this->W['_userauth_delete_quit']);
	$this->form->set_button_label('delete',$this->W['_userauth_delete_quit_submit']);
	$this->set_defaults();
	$this->set_constants();
	$this->add_rules();
	$this->set_form_filters();
}

function set_defaults() {
	/*
	$defaults = array("field's name"=>$default_value,
					"field's name"=>$default_value);
	$this->form->setDefaults($defaults);
	*/
}

function set_constants() {
	/*
	$constants = array("field's name"=>$constant_value,
					"field's name"=>$constant_value);
	$this->form->setConstants($constants);
	*/
}

//function sample_rule($value) { if($value==true) return true; else return false; }

function add_rules() {
	/*
	$this->form->registerRule('sample_rule','callback','sample_rule',$this);
	$this->form->addRule("field's name",'Error Message','sample_rule',NULL,'server');
	*/
}


//function sample_filter($value) { return $value; }

function set_form_filters() {
	$this->form->applyFilter('_ALL_','trim');
	//$this->form->applyFilter("field's name",array($this,'sample_filter'));
}

} // end of class user_form_options
?>