@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | return $this->LibStatut($this->status, $mode); |
848 | 848 | } |
849 | 849 | |
850 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
850 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
851 | 851 | /** |
852 | 852 | * Return the status |
853 | 853 | * |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | */ |
858 | 858 | public function LibStatut($status, $mode = 0) |
859 | 859 | { |
860 | - // phpcs:enable |
|
860 | + // phpcs:enable |
|
861 | 861 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
862 | 862 | global $langs; |
863 | 863 | //$langs->load("agenda"); |
@@ -837,7 +837,7 @@ discard block |
||
837 | 837 | return $this->LibStatut($this->status, $mode); |
838 | 838 | } |
839 | 839 | |
840 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
840 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
841 | 841 | /** |
842 | 842 | * Return the label of a given status |
843 | 843 | * |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | */ |
848 | 848 | public function LibStatut($status, $mode = 0) |
849 | 849 | { |
850 | - // phpcs:enable |
|
850 | + // phpcs:enable |
|
851 | 851 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
852 | 852 | global $langs; |
853 | 853 |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | } |
717 | 717 | } |
718 | 718 | |
719 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
719 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
720 | 720 | /** |
721 | 721 | * Clean sensible object datas |
722 | 722 | * |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | */ |
726 | 726 | protected function _cleanObjectDatas($object) |
727 | 727 | { |
728 | - // phpcs:enable |
|
728 | + // phpcs:enable |
|
729 | 729 | $object = parent::_cleanObjectDatas($object); |
730 | 730 | |
731 | 731 | unset($object->rowid); |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | return $this->LibStatut($this->status, $mode); |
1439 | 1439 | } |
1440 | 1440 | |
1441 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1441 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1442 | 1442 | /** |
1443 | 1443 | * Return the status |
1444 | 1444 | * |
@@ -1448,7 +1448,7 @@ discard block |
||
1448 | 1448 | */ |
1449 | 1449 | public function LibStatut($status, $mode = 0) |
1450 | 1450 | { |
1451 | - // phpcs:enable |
|
1451 | + // phpcs:enable |
|
1452 | 1452 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
1453 | 1453 | global $langs; |
1454 | 1454 | //$langs->load("assets"); |
@@ -1438,7 +1438,7 @@ discard block |
||
1438 | 1438 | return $this->LibStatut($this->status, $mode); |
1439 | 1439 | } |
1440 | 1440 | |
1441 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1441 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1442 | 1442 | /** |
1443 | 1443 | * Return the status |
1444 | 1444 | * |
@@ -1448,7 +1448,7 @@ discard block |
||
1448 | 1448 | */ |
1449 | 1449 | public function LibStatut($status, $mode = 0) |
1450 | 1450 | { |
1451 | - // phpcs:enable |
|
1451 | + // phpcs:enable |
|
1452 | 1452 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
1453 | 1453 | global $langs; |
1454 | 1454 | //$langs->load("assets"); |
@@ -754,8 +754,8 @@ discard block |
||
754 | 754 | } |
755 | 755 | |
756 | 756 | |
757 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
758 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
757 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
758 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
759 | 759 | /** |
760 | 760 | * Return DN string complete in the LDAP directory for the object |
761 | 761 | * |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | */ |
768 | 768 | public function _load_ldap_dn($info, $mode = 0) |
769 | 769 | { |
770 | - // phpcs:enable |
|
770 | + // phpcs:enable |
|
771 | 771 | global $conf; |
772 | 772 | $dn = ''; |
773 | 773 | if ($mode == 0) { |
@@ -781,8 +781,8 @@ discard block |
||
781 | 781 | } |
782 | 782 | |
783 | 783 | |
784 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
785 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
784 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
785 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
786 | 786 | /** |
787 | 787 | * Initialize info table (LDAP attributes table) |
788 | 788 | * |
@@ -790,7 +790,7 @@ discard block |
||
790 | 790 | */ |
791 | 791 | public function _load_ldap_info() |
792 | 792 | { |
793 | - // phpcs:enable |
|
793 | + // phpcs:enable |
|
794 | 794 | global $conf, $langs; |
795 | 795 | |
796 | 796 | $info = array(); |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | } |
892 | 892 | |
893 | 893 | |
894 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
894 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
895 | 895 | /** |
896 | 896 | * Update field alert birthday |
897 | 897 | * |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | */ |
903 | 903 | public function update_perso($id, $user = null, $notrigger = 0) |
904 | 904 | { |
905 | - // phpcs:enable |
|
905 | + // phpcs:enable |
|
906 | 906 | $error = 0; |
907 | 907 | $result = false; |
908 | 908 | |
@@ -1186,7 +1186,7 @@ discard block |
||
1186 | 1186 | } |
1187 | 1187 | } |
1188 | 1188 | |
1189 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1189 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1190 | 1190 | /** |
1191 | 1191 | * Load number of elements the contact is used as a link for |
1192 | 1192 | * ref_facturation |
@@ -1198,7 +1198,7 @@ discard block |
||
1198 | 1198 | */ |
1199 | 1199 | public function load_ref_elements() |
1200 | 1200 | { |
1201 | - // phpcs:enable |
|
1201 | + // phpcs:enable |
|
1202 | 1202 | // Count the elements for which it is contact |
1203 | 1203 | $sql = "SELECT tc.element, count(ec.rowid) as nb"; |
1204 | 1204 | $sql .= " FROM " . MAIN_DB_PREFIX . "element_contact as ec, " . MAIN_DB_PREFIX . "c_type_contact as tc"; |
@@ -1582,7 +1582,7 @@ discard block |
||
1582 | 1582 | return $this->LibStatut($this->statut, $mode); |
1583 | 1583 | } |
1584 | 1584 | |
1585 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1585 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1586 | 1586 | /** |
1587 | 1587 | * Return the label of a given status |
1588 | 1588 | * |
@@ -1592,7 +1592,7 @@ discard block |
||
1592 | 1592 | */ |
1593 | 1593 | public function LibStatut($status, $mode) |
1594 | 1594 | { |
1595 | - // phpcs:enable |
|
1595 | + // phpcs:enable |
|
1596 | 1596 | global $langs; |
1597 | 1597 | |
1598 | 1598 | $labelStatus = array( |
@@ -1620,7 +1620,7 @@ discard block |
||
1620 | 1620 | } |
1621 | 1621 | |
1622 | 1622 | |
1623 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1623 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1624 | 1624 | /** |
1625 | 1625 | * Return translated label of Public or Private |
1626 | 1626 | * |
@@ -1629,7 +1629,7 @@ discard block |
||
1629 | 1629 | */ |
1630 | 1630 | public function LibPubPriv($status) |
1631 | 1631 | { |
1632 | - // phpcs:enable |
|
1632 | + // phpcs:enable |
|
1633 | 1633 | global $langs; |
1634 | 1634 | if ($status == '1') { |
1635 | 1635 | return $langs->trans('ContactPrivate'); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | return $this->LibStatut($this->statut, $mode, ((!empty($this->date_end)) ? ($this->date_end < dol_now() ? 1 : 0) : -1)); |
261 | 261 | } |
262 | 262 | |
263 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
263 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
264 | 264 | /** |
265 | 265 | * Return label of a contract line status |
266 | 266 | * |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public static function LibStatut($status, $mode, $expired = -1, $moreatt = '', $morelabel = '') |
275 | 275 | { |
276 | - // phpcs:enable |
|
276 | + // phpcs:enable |
|
277 | 277 | global $langs; |
278 | 278 | $langs->load("contracts"); |
279 | 279 | |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | } |
710 | 710 | |
711 | 711 | |
712 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
712 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
713 | 713 | /** |
714 | 714 | * Update in database the fields total_xxx of lines |
715 | 715 | * Used by migration process |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | */ |
719 | 719 | public function update_total() |
720 | 720 | { |
721 | - // phpcs:enable |
|
721 | + // phpcs:enable |
|
722 | 722 | $this->db->begin(); |
723 | 723 | |
724 | 724 | // Mise a jour ligne en base |
@@ -836,7 +836,7 @@ discard block |
||
836 | 836 | } |
837 | 837 | } |
838 | 838 | |
839 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
839 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
840 | 840 | /** |
841 | 841 | * Activate a contract line |
842 | 842 | * |
@@ -848,7 +848,7 @@ discard block |
||
848 | 848 | */ |
849 | 849 | public function active_line($user, $date, $date_end = '', $comment = '') |
850 | 850 | { |
851 | - // phpcs:enable |
|
851 | + // phpcs:enable |
|
852 | 852 | $error = 0; |
853 | 853 | |
854 | 854 | $this->db->begin(); |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | } |
895 | 895 | } |
896 | 896 | |
897 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
897 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
898 | 898 | /** |
899 | 899 | * Close a contract line |
900 | 900 | * |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | */ |
907 | 907 | public function close_line($user, $date_end_real, $comment = '', $notrigger = 0) |
908 | 908 | { |
909 | - // phpcs:enable |
|
909 | + // phpcs:enable |
|
910 | 910 | $this->date_cloture = $date_end_real; |
911 | 911 | $this->date_end_real = $date_end_real; |
912 | 912 | $this->user_closing_id = $user->id; |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | } |
365 | 365 | } |
366 | 366 | |
367 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
367 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
368 | 368 | /** |
369 | 369 | * Activate a contract line |
370 | 370 | * |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | */ |
378 | 378 | public function active_line($user, $line_id, $date_start, $date_end = '', $comment = '') |
379 | 379 | { |
380 | - // phpcs:enable |
|
380 | + // phpcs:enable |
|
381 | 381 | $result = $this->lines[$this->lines_id_index_mapper[$line_id]]->active_line($user, $date_start, $date_end, $comment); |
382 | 382 | if ($result < 0) { |
383 | 383 | $this->error = $this->lines[$this->lines_id_index_mapper[$line_id]]->error; |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | } |
388 | 388 | |
389 | 389 | |
390 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
390 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
391 | 391 | /** |
392 | 392 | * Close a contract line |
393 | 393 | * |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | */ |
400 | 400 | public function close_line($user, $line_id, $date_end, $comment = '') |
401 | 401 | { |
402 | - // phpcs:enable |
|
402 | + // phpcs:enable |
|
403 | 403 | $result = $this->lines[$this->lines_id_index_mapper[$line_id]]->close_line($user, $date_end, $comment); |
404 | 404 | if ($result < 0) { |
405 | 405 | $this->error = $this->lines[$this->lines_id_index_mapper[$line_id]]->error; |
@@ -821,7 +821,7 @@ discard block |
||
821 | 821 | } |
822 | 822 | } |
823 | 823 | |
824 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
824 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
825 | 825 | /** |
826 | 826 | * Load lines array into this->lines. |
827 | 827 | * This set also nbofserviceswait, nbofservicesopened, nbofservicesexpired and nbofservicesclosed |
@@ -833,7 +833,7 @@ discard block |
||
833 | 833 | */ |
834 | 834 | public function fetch_lines($only_services = 0, $loadalsotranslation = 0, $noextrafields = 0) |
835 | 835 | { |
836 | - // phpcs:enable |
|
836 | + // phpcs:enable |
|
837 | 837 | $this->nbofservices = 0; |
838 | 838 | $this->nbofserviceswait = 0; |
839 | 839 | $this->nbofservicesopened = 0; |
@@ -1964,7 +1964,7 @@ discard block |
||
1964 | 1964 | } |
1965 | 1965 | |
1966 | 1966 | |
1967 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1967 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1968 | 1968 | /** |
1969 | 1969 | * Update statut of contract according to services |
1970 | 1970 | * |
@@ -1974,7 +1974,7 @@ discard block |
||
1974 | 1974 | */ |
1975 | 1975 | public function update_statut($user) |
1976 | 1976 | { |
1977 | - // phpcs:enable |
|
1977 | + // phpcs:enable |
|
1978 | 1978 | dol_syslog(__METHOD__ . " is deprecated", LOG_WARNING); |
1979 | 1979 | |
1980 | 1980 | // If draft, we keep it (should not happen) |
@@ -2006,7 +2006,7 @@ discard block |
||
2006 | 2006 | return $this->LibStatut($this->statut, $mode); |
2007 | 2007 | } |
2008 | 2008 | |
2009 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2009 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2010 | 2010 | /** |
2011 | 2011 | * Return the label of a given contrat status |
2012 | 2012 | * |
@@ -2016,7 +2016,7 @@ discard block |
||
2016 | 2016 | */ |
2017 | 2017 | public function LibStatut($status, $mode) |
2018 | 2018 | { |
2019 | - // phpcs:enable |
|
2019 | + // phpcs:enable |
|
2020 | 2020 | global $langs; |
2021 | 2021 | |
2022 | 2022 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -2226,7 +2226,7 @@ discard block |
||
2226 | 2226 | } |
2227 | 2227 | } |
2228 | 2228 | |
2229 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2229 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2230 | 2230 | /** |
2231 | 2231 | * Return list of line rowid |
2232 | 2232 | * |
@@ -2235,7 +2235,7 @@ discard block |
||
2235 | 2235 | */ |
2236 | 2236 | public function array_detail($status = -1) |
2237 | 2237 | { |
2238 | - // phpcs:enable |
|
2238 | + // phpcs:enable |
|
2239 | 2239 | $tab = array(); |
2240 | 2240 | |
2241 | 2241 | $sql = "SELECT cd.rowid"; |
@@ -2307,7 +2307,7 @@ discard block |
||
2307 | 2307 | } |
2308 | 2308 | |
2309 | 2309 | |
2310 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2310 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
2311 | 2311 | /** |
2312 | 2312 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
2313 | 2313 | * |
@@ -2317,7 +2317,7 @@ discard block |
||
2317 | 2317 | */ |
2318 | 2318 | public function load_board($user, $mode) |
2319 | 2319 | { |
2320 | - // phpcs:enable |
|
2320 | + // phpcs:enable |
|
2321 | 2321 | global $conf, $langs; |
2322 | 2322 | |
2323 | 2323 | $this->from = " FROM " . MAIN_DB_PREFIX . "contrat as c"; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | //print ' => template_dir='.$this->template_dir.'<br>'; |
140 | 140 | } |
141 | 141 | |
142 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
142 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
143 | 143 | /** |
144 | 144 | * Shared method for canvas to assign values for templates |
145 | 145 | * |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | */ |
151 | 151 | public function assign_values(&$action = 'view', $id = 0, $ref = '') |
152 | 152 | { |
153 | - // phpcs:enable |
|
153 | + // phpcs:enable |
|
154 | 154 | if (is_object($this->control) && method_exists($this->control, 'assign_values')) { |
155 | 155 | $this->control->assign_values($action, $id, $ref); |
156 | 156 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | } |
178 | 178 | |
179 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
179 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
180 | 180 | /** |
181 | 181 | * Display a canvas page. This will include the template for output. |
182 | 182 | * Variables used by templates may have been defined or loaded before into the assign_values function. |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function display_canvas($action) |
188 | 188 | { |
189 | - // phpcs:enable |
|
189 | + // phpcs:enable |
|
190 | 190 | global $db, $conf, $langs, $user, $canvas; |
191 | 191 | global $form, $formfile; |
192 | 192 |