32 define(
"OP_BETWEEN", 0x00);
33 define(
"OP_NOTBETWEEN", 0x01);
34 define(
"OP_EQUAL", 0x02);
35 define(
"OP_NOTEQUAL", 0x03);
36 define(
"OP_GT", 0x04);
37 define(
"OP_LT", 0x05);
38 define(
"OP_GTE", 0x06);
39 define(
"OP_LTE", 0x07);
72 $this->_parser = $parser;
75 $this->_fixedList =
false;
76 $this->_blank =
false;
77 $this->_incell =
false;
78 $this->_showprompt =
false;
79 $this->_showerror =
true;
80 $this->_title_prompt =
"\x00";
81 $this->_descr_prompt =
"\x00";
82 $this->_title_error =
"\x00";
83 $this->_descr_error =
"\x00";
84 $this->_operator = 0x00;
85 $this->_formula1 =
"";
86 $this->_formula2 =
"";
89 function setPrompt($promptTitle =
"\x00", $promptDescription =
"\x00", $showPrompt =
true)
91 $this->_showprompt = $showPrompt;
92 $this->_title_prompt = $promptTitle;
93 $this->_descr_prompt = $promptDescription;
96 function setError($errorTitle =
"\x00", $errorDescription =
"\x00", $showError =
true)
98 $this->_showerror = $showError;
99 $this->_title_error = $errorTitle;
100 $this->_descr_error = $errorDescription;
105 $this->_blank =
true;
110 $this->_style = 0x00;
115 $this->_style = 0x01;
120 $this->_style = 0x02;
126 $error = $this->_parser->parse($formula);
131 $this->_formula1 = $this->_parser->toReversePolish();
141 $error = $this->_parser->parse($formula);
146 $this->_formula2 = $this->_parser->toReversePolish();
156 $options |= $this->_style << 3;
157 if($this->_fixedList)
163 if($this->_showprompt)
165 if($this->_showerror)
167 $options |= $this->_operator << 20;
174 $title_prompt_len = strlen($this->_title_prompt);
175 $descr_prompt_len = strlen($this->_descr_prompt);
176 $title_error_len = strlen($this->_title_error);
177 $descr_error_len = strlen($this->_descr_error);
179 $formula1_size = strlen($this->_formula1);
180 $formula2_size = strlen($this->_formula2);