@@ 187-191 (lines=5) @@ | ||
184 | } |
|
185 | // 1) Check that all parameters have been specified |
|
186 | ||
187 | foreach (array('T', 'I', 'F', 'V') as $field) { |
|
188 | if (! isset($_REQUEST[$field])) { |
|
189 | return "$field value missing"; |
|
190 | } |
|
191 | } |
|
192 | ||
193 | // 2 Check the parameters values |
|
194 | ||
@@ 811-815 (lines=5) @@ | ||
808 | $editTextNode = "<div class=\"editablePart\">$editTextNode</div>"; |
|
809 | } |
|
810 | if ($data) { |
|
811 | foreach (array("T", "F", "I") as $key) { |
|
812 | if (!isset($data[$key])) { |
|
813 | user_error("data must contain T (table), F (field) and I (ID) value"); |
|
814 | } |
|
815 | } |
|
816 | $data = " data-name=\"".Convert::raw2att(Convert::raw2json($data))."\""; |
|
817 | } |
|
818 | $filterClass = $extraClassesString; |