<?php
class <!--{$class_name}-->_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().'<!--{$dir_name}-->/');
	$this->form->set_restart_link_addr(quicty_base_url().'<!--{$dir_name}-->/');
	$this->form->set_button_status('use_confirm',false);
	$this->set_defaults();
	$this->set_constants();
	$this->set_form_filters();
	$this->add_rules();
}

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_filter($value) { return $value; }

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

//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');
	*/
}

} // end of class <!--{$class_name}-->_form_options
?>