@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | return $this->LibStatut($this->status, $mode); |
817 | 817 | } |
818 | 818 | |
819 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
819 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
820 | 820 | /** |
821 | 821 | * Return the status |
822 | 822 | * |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | */ |
827 | 827 | public function LibStatut($status, $mode = 0) |
828 | 828 | { |
829 | - // phpcs:enable |
|
829 | + // phpcs:enable |
|
830 | 830 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
831 | 831 | global $langs; |
832 | 832 | //$langs->load("recruitment@recruitment"); |
@@ -893,7 +893,7 @@ discard block |
||
893 | 893 | return $this->LibStatut($this->status, $mode); |
894 | 894 | } |
895 | 895 | |
896 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
896 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
897 | 897 | /** |
898 | 898 | * Return the status |
899 | 899 | * |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | */ |
904 | 904 | public function LibStatut($status, $mode = 0) |
905 | 905 | { |
906 | - // phpcs:enable |
|
906 | + // phpcs:enable |
|
907 | 907 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
908 | 908 | global $langs; |
909 | 909 | //$langs->load("recruitment"); |
@@ -347,15 +347,15 @@ discard block |
||
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
350 | - * Create candidature object |
|
351 | - * |
|
352 | - * @param array $request_data Request datas |
|
353 | - * @return int ID of candidature |
|
354 | - * |
|
355 | - * @throws RestException |
|
356 | - * |
|
357 | - * @url POST candidature/ |
|
358 | - */ |
|
350 | + * Create candidature object |
|
351 | + * |
|
352 | + * @param array $request_data Request datas |
|
353 | + * @return int ID of candidature |
|
354 | + * |
|
355 | + * @throws RestException |
|
356 | + * |
|
357 | + * @url POST candidature/ |
|
358 | + */ |
|
359 | 359 | public function postCandidature($request_data = null) |
360 | 360 | { |
361 | 361 | if (!DolibarrApiAccess::$user->hasRight('recruitment', 'recruitmentjobposition', 'write')) { |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | } |
557 | 557 | |
558 | 558 | |
559 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
559 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
560 | 560 | /** |
561 | 561 | * Clean sensible object datas |
562 | 562 | * |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | */ |
566 | 566 | protected function _cleanObjectDatas($object) |
567 | 567 | { |
568 | - // phpcs:enable |
|
568 | + // phpcs:enable |
|
569 | 569 | $object = parent::_cleanObjectDatas($object); |
570 | 570 | |
571 | 571 | unset($object->rowid); |
@@ -1488,7 +1488,7 @@ discard block |
||
1488 | 1488 | return $this->LibStatut($this->status, $mode, $this->date_debut); |
1489 | 1489 | } |
1490 | 1490 | |
1491 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1491 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1492 | 1492 | /** |
1493 | 1493 | * Returns the label of a status |
1494 | 1494 | * |
@@ -1499,7 +1499,7 @@ discard block |
||
1499 | 1499 | */ |
1500 | 1500 | public function LibStatut($status, $mode = 0, $startdate = '') |
1501 | 1501 | { |
1502 | - // phpcs:enable |
|
1502 | + // phpcs:enable |
|
1503 | 1503 | global $langs; |
1504 | 1504 | |
1505 | 1505 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -2041,7 +2041,7 @@ discard block |
||
2041 | 2041 | } |
2042 | 2042 | |
2043 | 2043 | |
2044 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2044 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2045 | 2045 | /** |
2046 | 2046 | * Return list of people with permission to validate leave requests. |
2047 | 2047 | * Search for permission "approve leave requests" |
@@ -2050,7 +2050,7 @@ discard block |
||
2050 | 2050 | */ |
2051 | 2051 | public function fetch_users_approver_holiday() |
2052 | 2052 | { |
2053 | - // phpcs:enable |
|
2053 | + // phpcs:enable |
|
2054 | 2054 | $users_validator = array(); |
2055 | 2055 | |
2056 | 2056 | $sql = "SELECT DISTINCT ur.fk_user"; |
@@ -2431,7 +2431,7 @@ discard block |
||
2431 | 2431 | } |
2432 | 2432 | } |
2433 | 2433 | |
2434 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2434 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2435 | 2435 | /** |
2436 | 2436 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
2437 | 2437 | * |
@@ -2440,7 +2440,7 @@ discard block |
||
2440 | 2440 | */ |
2441 | 2441 | public function load_board($user) |
2442 | 2442 | { |
2443 | - // phpcs:enable |
|
2443 | + // phpcs:enable |
|
2444 | 2444 | global $conf, $langs; |
2445 | 2445 | |
2446 | 2446 | if ($user->socid) { |
@@ -235,10 +235,10 @@ |
||
235 | 235 | $id = $ecmdirtmp->create($user); |
236 | 236 | if ($id > 0) { |
237 | 237 | $newdirsql = array('id' => $id, |
238 | - 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | - 'label' => $ecmdirtmp->label, |
|
240 | - 'description' => $ecmdirtmp->description, |
|
241 | - 'fullrelativename' => $relativepathmissing); |
|
238 | + 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | + 'label' => $ecmdirtmp->label, |
|
240 | + 'description' => $ecmdirtmp->description, |
|
241 | + 'fullrelativename' => $relativepathmissing); |
|
242 | 242 | $sqltree[] = $newdirsql; // We complete fulltree for following loops |
243 | 243 | //var_dump($sqltree); |
244 | 244 | $adirwascreated = 1; |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | return $ret; |
559 | 559 | } |
560 | 560 | |
561 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
561 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
562 | 562 | /** |
563 | 563 | * Load this->motherof that is array(id_son=>id_parent, ...) |
564 | 564 | * |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | */ |
567 | 567 | public function load_motherof() |
568 | 568 | { |
569 | - // phpcs:enable |
|
569 | + // phpcs:enable |
|
570 | 570 | global $conf; |
571 | 571 | |
572 | 572 | $this->motherof = array(); |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | return $this->LibStatut($this->status, $mode); |
604 | 604 | } |
605 | 605 | |
606 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
606 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
607 | 607 | /** |
608 | 608 | * Return the status |
609 | 609 | * |
@@ -613,13 +613,13 @@ discard block |
||
613 | 613 | */ |
614 | 614 | public static function LibStatut($status, $mode = 0) |
615 | 615 | { |
616 | - // phpcs:enable |
|
616 | + // phpcs:enable |
|
617 | 617 | global $langs; |
618 | 618 | return ''; |
619 | 619 | } |
620 | 620 | |
621 | 621 | |
622 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
622 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
623 | 623 | /** |
624 | 624 | * Reconstruit l'arborescence des categories sous la forme d'un tableau à partir de la base de donnée |
625 | 625 | * Renvoi un tableau de tableau('id','id_mere',...) trie selon arbre et avec: |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | */ |
642 | 642 | public function get_full_arbo($force = 0) |
643 | 643 | { |
644 | - // phpcs:enable |
|
644 | + // phpcs:enable |
|
645 | 645 | global $conf; |
646 | 646 | |
647 | 647 | if (empty($force) && !empty($this->full_arbo_loaded)) { |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | } |
790 | 790 | } |
791 | 791 | |
792 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
792 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
793 | 793 | /** |
794 | 794 | * Call trigger based on this instance. |
795 | 795 | * We implement it here because this class doe not extend CommonObject. |
@@ -804,7 +804,7 @@ discard block |
||
804 | 804 | */ |
805 | 805 | public function call_trigger($triggerName, $user) |
806 | 806 | { |
807 | - // phpcs:enable |
|
807 | + // phpcs:enable |
|
808 | 808 | global $langs, $conf; |
809 | 809 | |
810 | 810 | include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php'; |
@@ -952,7 +952,7 @@ discard block |
||
952 | 952 | return $this->LibStatut($this->status, $mode); |
953 | 953 | } |
954 | 954 | |
955 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
955 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
956 | 956 | /** |
957 | 957 | * Return the status |
958 | 958 | * |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | */ |
963 | 963 | public static function LibStatut($status, $mode = 0) |
964 | 964 | { |
965 | - // phpcs:enable |
|
965 | + // phpcs:enable |
|
966 | 966 | global $langs; |
967 | 967 | return ''; |
968 | 968 | } |
@@ -235,10 +235,10 @@ |
||
235 | 235 | $id = $ecmdirtmp->create($user); |
236 | 236 | if ($id > 0) { |
237 | 237 | $newdirsql = array('id' => $id, |
238 | - 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | - 'label' => $ecmdirtmp->label, |
|
240 | - 'description' => $ecmdirtmp->description, |
|
241 | - 'fullrelativename' => $relativepathmissing); |
|
238 | + 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | + 'label' => $ecmdirtmp->label, |
|
240 | + 'description' => $ecmdirtmp->description, |
|
241 | + 'fullrelativename' => $relativepathmissing); |
|
242 | 242 | $sqltree[] = $newdirsql; // We complete fulltree for following loops |
243 | 243 | //var_dump($sqltree); |
244 | 244 | $adirwascreated = 1; |
@@ -235,10 +235,10 @@ |
||
235 | 235 | $id = $ecmdirtmp->create($user); |
236 | 236 | if ($id > 0) { |
237 | 237 | $newdirsql = array('id' => $id, |
238 | - 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | - 'label' => $ecmdirtmp->label, |
|
240 | - 'description' => $ecmdirtmp->description, |
|
241 | - 'fullrelativename' => $relativepathmissing); |
|
238 | + 'id_mere' => $ecmdirtmp->fk_parent, |
|
239 | + 'label' => $ecmdirtmp->label, |
|
240 | + 'description' => $ecmdirtmp->description, |
|
241 | + 'fullrelativename' => $relativepathmissing); |
|
242 | 242 | $sqltree[] = $newdirsql; // We complete fulltree for following loops |
243 | 243 | //var_dump($sqltree); |
244 | 244 | $adirwascreated = 1; |