@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return $this->returnJson($ret); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param Request $request |
|
102 | + */ |
|
100 | 103 | private function constructSearchParameters($request) |
101 | 104 | { |
102 | 105 | $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true); |
@@ -112,6 +115,10 @@ discard block |
||
112 | 115 | return $parameters; |
113 | 116 | } |
114 | 117 | |
118 | + /** |
|
119 | + * @param Request $request |
|
120 | + * @param ConceptSearchParameters $parameters |
|
121 | + */ |
|
115 | 122 | private function transformSearchResults($request, $results, $parameters) |
116 | 123 | { |
117 | 124 | // before serializing to JSON, get rid of the Vocabulary object that came with each resource |
@@ -407,6 +414,10 @@ discard block |
||
407 | 414 | return $this->returnJson($ret); |
408 | 415 | } |
409 | 416 | |
417 | + /** |
|
418 | + * @param string $label |
|
419 | + * @param string $lang |
|
420 | + */ |
|
410 | 421 | private function findLookupHits($results, $label, $lang) |
411 | 422 | { |
412 | 423 | $hits = array(); |
@@ -468,6 +479,9 @@ discard block |
||
468 | 479 | return $hits; |
469 | 480 | } |
470 | 481 | |
482 | + /** |
|
483 | + * @param string $lang |
|
484 | + */ |
|
471 | 485 | private function transformLookupResults($lang, $hits) |
472 | 486 | { |
473 | 487 | if (sizeof($hits) == 0) { |
@@ -539,6 +553,9 @@ discard block |
||
539 | 553 | return $this->returnJson($ret); |
540 | 554 | } |
541 | 555 | |
556 | + /** |
|
557 | + * @param Request $request |
|
558 | + */ |
|
542 | 559 | private function redirectToVocabData($request) { |
543 | 560 | $urls = $request->getVocab()->getConfig()->getDataURLs(); |
544 | 561 | if (sizeof($urls) == 0) { |
@@ -564,6 +581,10 @@ discard block |
||
564 | 581 | } |
565 | 582 | } |
566 | 583 | |
584 | + /** |
|
585 | + * @param string $results |
|
586 | + * @param string $format |
|
587 | + */ |
|
567 | 588 | private function returnDataResults($results, $format) { |
568 | 589 | if ($format == 'application/ld+json' || $format == 'application/json') { |
569 | 590 | // further compact JSON-LD document using a context |
@@ -700,6 +721,12 @@ discard block |
||
700 | 721 | return $this->returnJson($ret); |
701 | 722 | } |
702 | 723 | |
724 | + /** |
|
725 | + * @param string $uri |
|
726 | + * @param string $lang |
|
727 | + * @param string $propname |
|
728 | + * @param string $propuri |
|
729 | + */ |
|
703 | 730 | private function transformPropertyResults($uri, $lang, $objects, $propname, $propuri) |
704 | 731 | { |
705 | 732 | $results = array(); |
@@ -714,6 +741,14 @@ discard block |
||
714 | 741 | ); |
715 | 742 | } |
716 | 743 | |
744 | + /** |
|
745 | + * @param string $uri |
|
746 | + * @param string $lang |
|
747 | + * @param string $tpropname |
|
748 | + * @param string $tpropuri |
|
749 | + * @param string $dpropname |
|
750 | + * @param string $dpropuri |
|
751 | + */ |
|
717 | 752 | private function transformTransitivePropertyResults($uri, $lang, $objects, $tpropname, $tpropuri, $dpropname, $dpropuri) |
718 | 753 | { |
719 | 754 | $results = array(); |
@@ -33,16 +33,16 @@ |
||
33 | 33 | // Encrypt the current time |
34 | 34 | $honey_time_encrypted = $this->getEncryptedTime(); |
35 | 35 | return '<div id="' . $honey_name . '_wrap" style="display:none;">' . "\r\n" . |
36 | - '<input name="' . $honey_name . '" type="text" value="" id="' . $honey_name . '"/>' . "\r\n" . |
|
37 | - '<input name="' . $honey_time . '" type="text" value="' . $honey_time_encrypted . '"/>' . "\r\n" . |
|
36 | + '<input name="' . $honey_name . '" type="text" value="" id="' . $honey_name . '"/>' . "\r\n" . |
|
37 | + '<input name="' . $honey_time . '" type="text" value="' . $honey_time_encrypted . '"/>' . "\r\n" . |
|
38 | 38 | '</div>'; |
39 | 39 | } |
40 | 40 | /** |
41 | - * Validate honeypot is empty |
|
42 | - * |
|
43 | - * @param mixed $value |
|
44 | - * @return boolean |
|
45 | - */ |
|
41 | + * Validate honeypot is empty |
|
42 | + * |
|
43 | + * @param mixed $value |
|
44 | + * @return boolean |
|
45 | + */ |
|
46 | 46 | public function validateHoneypot($value) |
47 | 47 | { |
48 | 48 | if ($this->disabled) { |