@@ -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); |
@@ -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"); |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | return $this->LibStatut($this->status, $mode); |
| 805 | 805 | } |
| 806 | 806 | |
| 807 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 807 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 808 | 808 | |
| 809 | 809 | /** |
| 810 | 810 | * Return the status |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | */ |
| 816 | 816 | public function LibStatut($status, $mode = 0) |
| 817 | 817 | { |
| 818 | - // phpcs:enable |
|
| 818 | + // phpcs:enable |
|
| 819 | 819 | if (is_null($status)) { |
| 820 | 820 | return ''; |
| 821 | 821 | } |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | return $this->LibStatut($this->status, $mode); |
| 787 | 787 | } |
| 788 | 788 | |
| 789 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 789 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 790 | 790 | /** |
| 791 | 791 | * Return the status |
| 792 | 792 | * |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | */ |
| 797 | 797 | public function LibStatut($status, $mode = 0) |
| 798 | 798 | { |
| 799 | - // phpcs:enable |
|
| 799 | + // phpcs:enable |
|
| 800 | 800 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 801 | 801 | global $langs; |
| 802 | 802 | //$langs->load("hrm"); |
@@ -833,7 +833,7 @@ discard block |
||
| 833 | 833 | return $this->LibStatut($this->status, $mode); |
| 834 | 834 | } |
| 835 | 835 | |
| 836 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 836 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 837 | 837 | /** |
| 838 | 838 | * Return the status |
| 839 | 839 | * |
@@ -843,7 +843,7 @@ discard block |
||
| 843 | 843 | */ |
| 844 | 844 | public function LibStatut($status, $mode = 0) |
| 845 | 845 | { |
| 846 | - // phpcs:enable |
|
| 846 | + // phpcs:enable |
|
| 847 | 847 | return ''; // There is no status on job profile for the moment |
| 848 | 848 | |
| 849 | 849 | /* |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | 'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'position' => 21, 'notnull' => 0, 'visible' => 1,), |
| 111 | 111 | 'date_creation' => array('type' => 'datetime', 'label' => 'DateCreation', 'enabled' => 1, 'position' => 500, 'notnull' => 1, 'visible' => 2,), |
| 112 | 112 | 'tms' => array('type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'position' => 501, 'notnull' => 0, 'visible' => 2,), |
| 113 | - 'deplacement' => array('type' => 'select', 'required' => 1,'label' => 'NeedBusinessTravels', 'enabled' => 1, 'position' => 90, 'notnull' => 1, 'visible' => 1, 'arrayofkeyval' => array(0 => "No", 1 => "Yes"), 'default' => '0'), |
|
| 113 | + 'deplacement' => array('type' => 'select', 'required' => 1, 'label' => 'NeedBusinessTravels', 'enabled' => 1, 'position' => 90, 'notnull' => 1, 'visible' => 1, 'arrayofkeyval' => array(0 => "No", 1 => "Yes"), 'default' => '0'), |
|
| 114 | 114 | 'note_public' => array('type' => 'html', 'label' => 'NotePublic', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => 0,), |
| 115 | 115 | 'note_private' => array('type' => 'html', 'label' => 'NotePrivate', 'enabled' => 1, 'position' => 71, 'notnull' => 0, 'visible' => 0,), |
| 116 | 116 | 'fk_user_creat' => array('type' => 'integer:User:user/class/user.class.php', 'label' => 'UserAuthor', 'enabled' => 1, 'position' => 510, 'notnull' => 1, 'visible' => -2, 'foreignkey' => 'user.rowid',), |
@@ -844,7 +844,7 @@ discard block |
||
| 844 | 844 | public function LibStatut($status, $mode = 0) |
| 845 | 845 | { |
| 846 | 846 | // phpcs:enable |
| 847 | - return ''; // There is no status on job profile for the moment |
|
| 847 | + return ''; // There is no status on job profile for the moment |
|
| 848 | 848 | |
| 849 | 849 | /* |
| 850 | 850 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -873,7 +873,7 @@ discard block |
||
| 873 | 873 | return $this->LibStatut($this->status, $mode); |
| 874 | 874 | } |
| 875 | 875 | |
| 876 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 876 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 877 | 877 | /** |
| 878 | 878 | * Return the status |
| 879 | 879 | * |
@@ -887,7 +887,7 @@ discard block |
||
| 887 | 887 | $status = 0; |
| 888 | 888 | } |
| 889 | 889 | |
| 890 | - // phpcs:enable |
|
| 890 | + // phpcs:enable |
|
| 891 | 891 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 892 | 892 | global $langs; |
| 893 | 893 | //$langs->load("hrm"); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | public function create(User $user, $notrigger = 0) |
| 229 | 229 | { |
| 230 | - global $langs,$conf; |
|
| 230 | + global $langs, $conf; |
|
| 231 | 231 | |
| 232 | 232 | $resultcreate = $this->createCommon($user, $notrigger); |
| 233 | 233 | |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | $skilldet->rankorder = $i; |
| 267 | 267 | $skilldet->fk_skill = $this->id; |
| 268 | 268 | |
| 269 | - $result = $skilldet->create($user); |
|
| 269 | + $result = $skilldet->create($user); |
|
| 270 | 270 | if ($result <= 0) { |
| 271 | 271 | $error++; |
| 272 | 272 | } |
@@ -778,7 +778,7 @@ |
||
| 778 | 778 | <div style="text-align: center"> |
| 779 | 779 | <input type="submit" name="create" <?php if (!is_array($productCombination2ValuePairs1)) { |
| 780 | 780 | print ' disabled="disabled"'; |
| 781 | - } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save"> |
|
| 781 | + } ?> value="<?php echo $action == 'add' ? $langs->trans('Create') : $langs->trans("Save") ?>" class="button button-save"> |
|
| 782 | 782 | |
| 783 | 783 | <input type="submit" name="cancel" value="<?php echo $langs->trans("Cancel"); ?>" class="button button-cancel"> |
| 784 | 784 | </div> |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | } |
| 514 | 514 | } |
| 515 | 515 | |
| 516 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 516 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 517 | 517 | /** |
| 518 | 518 | * Load array lines |
| 519 | 519 | * |
@@ -522,7 +522,7 @@ discard block |
||
| 522 | 522 | */ |
| 523 | 523 | public function fetch_lines($filters = '') |
| 524 | 524 | { |
| 525 | - // phpcs:enable |
|
| 525 | + // phpcs:enable |
|
| 526 | 526 | global $langs; |
| 527 | 527 | |
| 528 | 528 | $this->lines = array(); |
@@ -1242,7 +1242,7 @@ discard block |
||
| 1242 | 1242 | return $this->LibStatut(0, $mode); |
| 1243 | 1243 | } |
| 1244 | 1244 | |
| 1245 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1245 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1246 | 1246 | /** |
| 1247 | 1247 | * Return label of a status |
| 1248 | 1248 | * |
@@ -1252,7 +1252,7 @@ discard block |
||
| 1252 | 1252 | */ |
| 1253 | 1253 | public function LibStatut($status, $mode = 1) |
| 1254 | 1254 | { |
| 1255 | - // phpcs:enable |
|
| 1255 | + // phpcs:enable |
|
| 1256 | 1256 | return ''; |
| 1257 | 1257 | } |
| 1258 | 1258 | |