Subversion Repositories oidplus

Rev

Rev 1219 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1219 Rev 1293
Line 162... Line 162...
162
 
162
 
163
                return $output;
163
                return $output;
164
        }
164
        }
165
 
165
 
166
        /**
166
        /**
-
 
167
         * @param array $params
-
 
168
         * @return array
-
 
169
         * @throws OIDplusException
-
 
170
         */
-
 
171
        private function action_Search(array $params): array {
-
 
172
                $ret = $this->doSearch($params);
-
 
173
                return array("status" => 0, "output" => $ret);
-
 
174
        }
-
 
175
 
-
 
176
        /**
167
         * @param string $actionID
177
         * @param string $actionID
168
         * @param array $params
178
         * @param array $params
169
         * @return array
179
         * @return array
170
         * @throws OIDplusException
180
         * @throws OIDplusException
171
         */
181
         */
172
        public function action(string $actionID, array $params): array {
182
        public function action(string $actionID, array $params): array {
173
 
-
 
174
                if ($actionID == 'search') {
183
                if ($actionID == 'search') {
175
                        // Search with JavaScript/AJAX
-
 
176
                        $ret = $this->doSearch($params);
184
                        return $this->action_Search($params);
177
                        return array("status" => 0, "output" => $ret);
-
 
178
                } else {
185
                } else {
179
                        return parent::action($actionID, $params);
186
                        return parent::action($actionID, $params);
180
                }
187
                }
181
 
-
 
182
        }
188
        }
183
 
189
 
184
        /**
190
        /**
185
         * @param string $id
191
         * @param string $id
186
         * @param array $out
192
         * @param array $out