Lines Matching defs:options
44 public function update($options) {
45 $this->load($options);
97 private function load($options) {
98 if (array_key_exists('searchmode', $options)) {
99 $this->config['searchmode'] = $options['searchmode'] == 'regexp' ? 'regexp' : 'text';
102 $this->loadBoolean($options, 'matchcase');
103 $this->loadBoolean($options, 'multiline');
104 $this->loadBoolean($options, 'advregexp');
105 $this->loadBoolean($options, 'matchctx');
106 $this->loadInteger($options, 'ctxchars');
107 $this->loadInteger($options, 'ctxlines');
113 $this->loadBoolean($options, 'searchlimit');
114 $this->loadInteger($options, 'searchmax');
120 $this->loadBoolean($options, 'keepmarks');
121 $this->loadInteger($options, 'markpolicy');
122 $this->loadBoolean($options, 'tplpatterns');
123 $this->loadBoolean($options, 'checksummary');
124 $this->loadInteger($options, 'searchheight');
125 $this->loadInteger($options, 'replaceheight');
131 private function loadBoolean($options, $id) {
132 if (array_key_exists($id, $options)) {
133 $this->config[$id] = $options[$id] == TRUE;
140 private function loadInteger($options, $id) {
141 if (array_key_exists($id, $options) && $options[$id] !== '') {
142 $this->config[$id] = max(intval($options[$id]), 0);