@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | |
| 352 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 352 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 353 | 353 | /** |
| 354 | 354 | * Load all lines of template of intervention into this->lines |
| 355 | 355 | * |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | */ |
| 359 | 359 | public function fetch_lines($sall = 0) |
| 360 | 360 | { |
| 361 | - // phpcs:enable |
|
| 361 | + // phpcs:enable |
|
| 362 | 362 | $this->lines = array(); |
| 363 | 363 | |
| 364 | 364 | $sql = 'SELECT l.rowid, l.fk_product, l.product_type as product_type, l.label as custom_label, l.description,'; |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | } |
| 589 | 589 | |
| 590 | 590 | |
| 591 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 591 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 592 | 592 | /** |
| 593 | 593 | * Rend la fichinter automatique |
| 594 | 594 | * |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | */ |
| 600 | 600 | public function set_auto($user, $freq, $courant) |
| 601 | 601 | { |
| 602 | - // phpcs:enable |
|
| 602 | + // phpcs:enable |
|
| 603 | 603 | if ($user->hasRight('fichinter', 'creer')) { |
| 604 | 604 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter_rec "; |
| 605 | 605 | $sql .= " SET frequency='" . $this->db->escape($freq) . "'"; |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | } |
| 284 | 284 | } |
| 285 | 285 | |
| 286 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 286 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 287 | 287 | /** |
| 288 | 288 | * Update total duration into llx_fichinter |
| 289 | 289 | * |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | */ |
| 292 | 292 | public function update_total() |
| 293 | 293 | { |
| 294 | - // phpcs:enable |
|
| 294 | + // phpcs:enable |
|
| 295 | 295 | global $conf; |
| 296 | 296 | |
| 297 | 297 | $this->db->begin(); |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | return $this->LibStatut((isset($this->statut) ? $this->statut : $this->status), $mode); |
| 835 | 835 | } |
| 836 | 836 | |
| 837 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 837 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 838 | 838 | /** |
| 839 | 839 | * Returns the label of a status |
| 840 | 840 | * |
@@ -844,7 +844,7 @@ discard block |
||
| 844 | 844 | */ |
| 845 | 845 | public function LibStatut($status, $mode = 0) |
| 846 | 846 | { |
| 847 | - // phpcs:enable |
|
| 847 | + // phpcs:enable |
|
| 848 | 848 | // Init/load array of translation of status |
| 849 | 849 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 850 | 850 | global $langs; |
@@ -1198,7 +1198,7 @@ discard block |
||
| 1198 | 1198 | } |
| 1199 | 1199 | } |
| 1200 | 1200 | |
| 1201 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1201 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1202 | 1202 | /** |
| 1203 | 1203 | * Defines a delivery date of intervention |
| 1204 | 1204 | * |
@@ -1208,7 +1208,7 @@ discard block |
||
| 1208 | 1208 | */ |
| 1209 | 1209 | public function set_date_delivery($user, $date_delivery) |
| 1210 | 1210 | { |
| 1211 | - // phpcs:enable |
|
| 1211 | + // phpcs:enable |
|
| 1212 | 1212 | if ($user->hasRight('ficheinter', 'creer')) { |
| 1213 | 1213 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
| 1214 | 1214 | $sql .= " SET datei = '" . $this->db->idate($date_delivery) . "'"; |
@@ -1228,7 +1228,7 @@ discard block |
||
| 1228 | 1228 | return 0; |
| 1229 | 1229 | } |
| 1230 | 1230 | |
| 1231 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1231 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1232 | 1232 | /** |
| 1233 | 1233 | * Define the label of the intervention |
| 1234 | 1234 | * |
@@ -1238,7 +1238,7 @@ discard block |
||
| 1238 | 1238 | */ |
| 1239 | 1239 | public function set_description($user, $description) |
| 1240 | 1240 | { |
| 1241 | - // phpcs:enable |
|
| 1241 | + // phpcs:enable |
|
| 1242 | 1242 | if ($user->hasRight('ficheinter', 'creer')) { |
| 1243 | 1243 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
| 1244 | 1244 | $sql .= " SET description = '" . $this->db->escape($description) . "',"; |
@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | } |
| 1260 | 1260 | |
| 1261 | 1261 | |
| 1262 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1262 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1263 | 1263 | /** |
| 1264 | 1264 | * Link intervention to a contract |
| 1265 | 1265 | * |
@@ -1269,7 +1269,7 @@ discard block |
||
| 1269 | 1269 | */ |
| 1270 | 1270 | public function set_contrat($user, $contractid) |
| 1271 | 1271 | { |
| 1272 | - // phpcs:enable |
|
| 1272 | + // phpcs:enable |
|
| 1273 | 1273 | if ($user->hasRight('ficheinter', 'creer')) { |
| 1274 | 1274 | $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter "; |
| 1275 | 1275 | $sql .= " SET fk_contrat = " . ((int) $contractid); |
@@ -1466,7 +1466,7 @@ discard block |
||
| 1466 | 1466 | return 1; |
| 1467 | 1467 | } |
| 1468 | 1468 | |
| 1469 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1469 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1470 | 1470 | /** |
| 1471 | 1471 | * Load array lines ->lines |
| 1472 | 1472 | * |
@@ -1474,7 +1474,7 @@ discard block |
||
| 1474 | 1474 | */ |
| 1475 | 1475 | public function fetch_lines() |
| 1476 | 1476 | { |
| 1477 | - // phpcs:enable |
|
| 1477 | + // phpcs:enable |
|
| 1478 | 1478 | $this->lines = array(); |
| 1479 | 1479 | |
| 1480 | 1480 | $sql = "SELECT rowid, fk_fichinter, description, duree, date, rang"; |
@@ -40,18 +40,18 @@ discard block |
||
| 40 | 40 | * @var array $FIELDS Mandatory fields, checked when create and update object |
| 41 | 41 | */ |
| 42 | 42 | public static $FIELDS = array( |
| 43 | - 'socid', |
|
| 44 | - 'fk_project', |
|
| 45 | - 'description', |
|
| 43 | + 'socid', |
|
| 44 | + 'fk_project', |
|
| 45 | + 'description', |
|
| 46 | 46 | ); |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @var array $FIELDS Mandatory fields, checked when create and update object |
| 50 | 50 | */ |
| 51 | 51 | public static $FIELDSLINE = array( |
| 52 | - 'description', |
|
| 53 | - 'date', |
|
| 54 | - 'duree', |
|
| 52 | + 'description', |
|
| 53 | + 'date', |
|
| 54 | + 'duree', |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | } |
| 432 | 432 | |
| 433 | 433 | |
| 434 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 434 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 435 | 435 | /** |
| 436 | 436 | * Clean sensible object datas |
| 437 | 437 | * |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | */ |
| 441 | 441 | protected function _cleanObjectDatas($object) |
| 442 | 442 | { |
| 443 | - // phpcs:enable |
|
| 443 | + // phpcs:enable |
|
| 444 | 444 | $object = parent::_cleanObjectDatas($object); |
| 445 | 445 | |
| 446 | 446 | unset($object->labelStatus); |
@@ -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 | } |
@@ -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'; |
@@ -628,7 +628,7 @@ discard block |
||
| 628 | 628 | return $this->LibStatutEvent($this->status, $mode); |
| 629 | 629 | } |
| 630 | 630 | |
| 631 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 631 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 632 | 632 | /** |
| 633 | 633 | * Return the status |
| 634 | 634 | * |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | */ |
| 639 | 639 | public function LibStatutEvent($status, $mode = 0) |
| 640 | 640 | { |
| 641 | - // phpcs:enable |
|
| 641 | + // phpcs:enable |
|
| 642 | 642 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
| 643 | 643 | global $langs; |
| 644 | 644 | //$langs->load("eventorganization@eventorganization"); |
@@ -411,7 +411,7 @@ discard block |
||
| 411 | 411 | } |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 414 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 415 | 415 | /** |
| 416 | 416 | * Tag loan as payment started |
| 417 | 417 | * |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | */ |
| 423 | 423 | public function set_started($user) |
| 424 | 424 | { |
| 425 | - // phpcs:enable |
|
| 425 | + // phpcs:enable |
|
| 426 | 426 | dol_syslog(get_class($this) . "::set_started is deprecated, use setStarted instead", LOG_NOTICE); |
| 427 | 427 | return $this->setStarted($user); |
| 428 | 428 | } |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | return $this->LibStatut($this->paid, $mode, $alreadypaid); |
| 486 | 486 | } |
| 487 | 487 | |
| 488 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 488 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 489 | 489 | /** |
| 490 | 490 | * Return label for given status |
| 491 | 491 | * |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | */ |
| 497 | 497 | public function LibStatut($status, $mode = 0, $alreadypaid = -1) |
| 498 | 498 | { |
| 499 | - // phpcs:enable |
|
| 499 | + // phpcs:enable |
|
| 500 | 500 | global $langs; |
| 501 | 501 | |
| 502 | 502 | // Load translation files required by the page |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | return $this->LibStatut($this->statut, $mode); |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 504 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 505 | 505 | /** |
| 506 | 506 | * Renvoi le libelle d'un statut donne |
| 507 | 507 | * |
@@ -511,7 +511,7 @@ discard block |
||
| 511 | 511 | */ |
| 512 | 512 | public function LibStatut($status, $mode = 0) |
| 513 | 513 | { |
| 514 | - // phpcs:enable |
|
| 514 | + // phpcs:enable |
|
| 515 | 515 | return ''; |
| 516 | 516 | } |
| 517 | 517 | |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | } |
| 621 | 621 | |
| 622 | 622 | |
| 623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 624 | 624 | /** |
| 625 | 625 | * Update link between loan's payment and the line generate in llx_bank |
| 626 | 626 | * |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | */ |
| 630 | 630 | public function update_fk_bank($id_bank) |
| 631 | 631 | { |
| 632 | - // phpcs:enable |
|
| 632 | + // phpcs:enable |
|
| 633 | 633 | $sql = "UPDATE " . MAIN_DB_PREFIX . "payment_loan SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id); |
| 634 | 634 | |
| 635 | 635 | dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG); |