@@ -1657,7 +1657,7 @@ |
||
| 1657 | 1657 | 70 => array('lang' => 'interventions', 'enabled' => isModEnabled("intervention"), 'perm' => $user->hasRight('fichinter', 'creer'), 'label' => 'AddIntervention', 'url' => '/fichinter/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1658 | 1658 | 80 => array('lang' => 'contracts', 'enabled' => isModEnabled("contract"), 'perm' => $user->hasRight('contrat', 'creer'), 'label' => 'AddContract', 'url' => '/contrat/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1659 | 1659 | 90 => array('lang' => 'trips', 'enabled' => isModEnabled("expensereport"), 'perm' => $user->hasRight('expensereport', 'creer'), 'label' => 'AddTrip', 'url' => '/expensereport/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
| 1660 | - 100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
|
| 1660 | + 100 => array('lang' => 'donations', 'enabled' => isModEnabled("don"), 'perm' => $user->hasRight('don', 'creer'), 'label' => 'AddDonation', 'url' => '/don/card.php?action=create&projectid=' . $object->id . '&socid=' . $object->socid), |
|
| 1661 | 1661 | ); |
| 1662 | 1662 | |
| 1663 | 1663 | $params = array('backtopage' => $_SERVER["PHP_SELF"] . '?id=' . $object->id); |
@@ -672,7 +672,7 @@ discard block |
||
| 672 | 672 | } |
| 673 | 673 | } |
| 674 | 674 | |
| 675 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 675 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 676 | 676 | /** |
| 677 | 677 | * Clean sensible object datas |
| 678 | 678 | * |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | */ |
| 682 | 682 | protected function _cleanObjectDatas($object) |
| 683 | 683 | { |
| 684 | - // phpcs:enable |
|
| 684 | + // phpcs:enable |
|
| 685 | 685 | $object = parent::_cleanObjectDatas($object); |
| 686 | 686 | |
| 687 | 687 | unset($object->barcode_type); |
@@ -177,8 +177,8 @@ discard block |
||
| 177 | 177 | public $usage_bill_time; // Is the time spent on project must be invoiced or not |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * @var integer Event organization: Use Event Organization |
|
| 181 | - */ |
|
| 180 | + * @var integer Event organization: Use Event Organization |
|
| 181 | + */ |
|
| 182 | 182 | public $usage_organize_event; |
| 183 | 183 | |
| 184 | 184 | /** |
@@ -812,7 +812,7 @@ discard block |
||
| 812 | 812 | return $substitution; |
| 813 | 813 | } |
| 814 | 814 | |
| 815 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 815 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 816 | 816 | /** |
| 817 | 817 | * Return list of elements for type, linked to a project |
| 818 | 818 | * |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | */ |
| 827 | 827 | public function get_element_list($type, $tablename, $datefieldname = '', $date_start = null, $date_end = null, $projectkey = 'fk_projet') |
| 828 | 828 | { |
| 829 | - // phpcs:enable |
|
| 829 | + // phpcs:enable |
|
| 830 | 830 | |
| 831 | 831 | global $hookmanager; |
| 832 | 832 | |
@@ -1285,7 +1285,7 @@ discard block |
||
| 1285 | 1285 | return $this->LibStatut(isset($this->statut) ? $this->statut : $this->status, $mode); |
| 1286 | 1286 | } |
| 1287 | 1287 | |
| 1288 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1288 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1289 | 1289 | /** |
| 1290 | 1290 | * Renvoi status label for a status |
| 1291 | 1291 | * |
@@ -1295,7 +1295,7 @@ discard block |
||
| 1295 | 1295 | */ |
| 1296 | 1296 | public function LibStatut($status, $mode = 0) |
| 1297 | 1297 | { |
| 1298 | - // phpcs:enable |
|
| 1298 | + // phpcs:enable |
|
| 1299 | 1299 | global $langs; |
| 1300 | 1300 | |
| 1301 | 1301 | if (is_null($status)) { |
@@ -1976,7 +1976,7 @@ discard block |
||
| 1976 | 1976 | } |
| 1977 | 1977 | |
| 1978 | 1978 | |
| 1979 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1979 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1980 | 1980 | /** |
| 1981 | 1981 | * Associate element to a project |
| 1982 | 1982 | * |
@@ -1986,7 +1986,7 @@ discard block |
||
| 1986 | 1986 | */ |
| 1987 | 1987 | public function update_element($tableName, $elementSelectId) |
| 1988 | 1988 | { |
| 1989 | - // phpcs:enable |
|
| 1989 | + // phpcs:enable |
|
| 1990 | 1990 | $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName; |
| 1991 | 1991 | |
| 1992 | 1992 | if ($tableName == "actioncomm") { |
@@ -2010,7 +2010,7 @@ discard block |
||
| 2010 | 2010 | } |
| 2011 | 2011 | } |
| 2012 | 2012 | |
| 2013 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2013 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2014 | 2014 | /** |
| 2015 | 2015 | * Associate element to a project |
| 2016 | 2016 | * |
@@ -2022,7 +2022,7 @@ discard block |
||
| 2022 | 2022 | */ |
| 2023 | 2023 | public function remove_element($tableName, $elementSelectId, $projectfield = 'fk_projet') |
| 2024 | 2024 | { |
| 2025 | - // phpcs:enable |
|
| 2025 | + // phpcs:enable |
|
| 2026 | 2026 | $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName; |
| 2027 | 2027 | |
| 2028 | 2028 | if ($tableName == "actioncomm") { |
@@ -2207,7 +2207,7 @@ discard block |
||
| 2207 | 2207 | } |
| 2208 | 2208 | } |
| 2209 | 2209 | |
| 2210 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2210 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2211 | 2211 | /** |
| 2212 | 2212 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2213 | 2213 | * |
@@ -2216,7 +2216,7 @@ discard block |
||
| 2216 | 2216 | */ |
| 2217 | 2217 | public function load_board($user) |
| 2218 | 2218 | { |
| 2219 | - // phpcs:enable |
|
| 2219 | + // phpcs:enable |
|
| 2220 | 2220 | global $conf, $langs; |
| 2221 | 2221 | |
| 2222 | 2222 | // For external user, no check is done on company because readability is managed by public status of project and assignment. |
@@ -2175,7 +2175,7 @@ discard block |
||
| 2175 | 2175 | return $this->LibStatut($this->status, $mode); |
| 2176 | 2176 | } |
| 2177 | 2177 | |
| 2178 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2178 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2179 | 2179 | /** |
| 2180 | 2180 | * Return status label for an object |
| 2181 | 2181 | * |
@@ -2185,7 +2185,7 @@ discard block |
||
| 2185 | 2185 | */ |
| 2186 | 2186 | public function LibStatut($status, $mode = 0) |
| 2187 | 2187 | { |
| 2188 | - // phpcs:enable |
|
| 2188 | + // phpcs:enable |
|
| 2189 | 2189 | global $langs; |
| 2190 | 2190 | |
| 2191 | 2191 | // list of Statut of the task |
@@ -2302,7 +2302,7 @@ discard block |
||
| 2302 | 2302 | } |
| 2303 | 2303 | |
| 2304 | 2304 | |
| 2305 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2305 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2306 | 2306 | /** |
| 2307 | 2307 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2308 | 2308 | * |
@@ -2311,7 +2311,7 @@ discard block |
||
| 2311 | 2311 | */ |
| 2312 | 2312 | public function load_board($user) |
| 2313 | 2313 | { |
| 2314 | - // phpcs:enable |
|
| 2314 | + // phpcs:enable |
|
| 2315 | 2315 | global $conf, $langs; |
| 2316 | 2316 | |
| 2317 | 2317 | // For external user, no check is done on company because readability is managed by public status of project and assignment. |
@@ -18,10 +18,10 @@ discard block |
||
| 18 | 18 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | 19 | */ |
| 20 | 20 | |
| 21 | - use Luracast\Restler\RestException; |
|
| 21 | + use Luracast\Restler\RestException; |
|
| 22 | 22 | |
| 23 | - require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/project.class.php'; |
|
| 24 | - require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/task.class.php'; |
|
| 23 | + require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/project.class.php'; |
|
| 24 | + require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/task.class.php'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * API class for projects |
@@ -657,7 +657,7 @@ discard block |
||
| 657 | 657 | } |
| 658 | 658 | |
| 659 | 659 | |
| 660 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 660 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 661 | 661 | /** |
| 662 | 662 | * Clean sensible object datas |
| 663 | 663 | * |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | */ |
| 667 | 667 | protected function _cleanObjectDatas($object) |
| 668 | 668 | { |
| 669 | - // phpcs:enable |
|
| 669 | + // phpcs:enable |
|
| 670 | 670 | $object = parent::_cleanObjectDatas($object); |
| 671 | 671 | |
| 672 | 672 | unset($object->datec); |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | } |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 360 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 361 | 361 | /** |
| 362 | 362 | * Activate a contract line |
| 363 | 363 | * |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | */ |
| 371 | 371 | public function active_line($user, $line_id, $date_start, $date_end = '', $comment = '') |
| 372 | 372 | { |
| 373 | - // phpcs:enable |
|
| 373 | + // phpcs:enable |
|
| 374 | 374 | $result = $this->lines[$this->lines_id_index_mapper[$line_id]]->active_line($user, $date_start, $date_end, $comment); |
| 375 | 375 | if ($result < 0) { |
| 376 | 376 | $this->error = $this->lines[$this->lines_id_index_mapper[$line_id]]->error; |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | |
| 383 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 383 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 384 | 384 | /** |
| 385 | 385 | * Close a contract line |
| 386 | 386 | * |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | */ |
| 393 | 393 | public function close_line($user, $line_id, $date_end, $comment = '') |
| 394 | 394 | { |
| 395 | - // phpcs:enable |
|
| 395 | + // phpcs:enable |
|
| 396 | 396 | $result = $this->lines[$this->lines_id_index_mapper[$line_id]]->close_line($user, $date_end, $comment); |
| 397 | 397 | if ($result < 0) { |
| 398 | 398 | $this->error = $this->lines[$this->lines_id_index_mapper[$line_id]]->error; |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | } |
| 815 | 815 | } |
| 816 | 816 | |
| 817 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 817 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 818 | 818 | /** |
| 819 | 819 | * Load lines array into this->lines. |
| 820 | 820 | * This set also nbofserviceswait, nbofservicesopened, nbofservicesexpired and nbofservicesclosed |
@@ -826,7 +826,7 @@ discard block |
||
| 826 | 826 | */ |
| 827 | 827 | public function fetch_lines($only_services = 0, $loadalsotranslation = 0, $noextrafields = 0) |
| 828 | 828 | { |
| 829 | - // phpcs:enable |
|
| 829 | + // phpcs:enable |
|
| 830 | 830 | $this->nbofservices = 0; |
| 831 | 831 | $this->nbofserviceswait = 0; |
| 832 | 832 | $this->nbofservicesopened = 0; |
@@ -1921,7 +1921,7 @@ discard block |
||
| 1921 | 1921 | } |
| 1922 | 1922 | |
| 1923 | 1923 | |
| 1924 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1924 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1925 | 1925 | /** |
| 1926 | 1926 | * Update statut of contract according to services |
| 1927 | 1927 | * |
@@ -1931,7 +1931,7 @@ discard block |
||
| 1931 | 1931 | */ |
| 1932 | 1932 | public function update_statut($user) |
| 1933 | 1933 | { |
| 1934 | - // phpcs:enable |
|
| 1934 | + // phpcs:enable |
|
| 1935 | 1935 | dol_syslog(__METHOD__ . " is deprecated", LOG_WARNING); |
| 1936 | 1936 | |
| 1937 | 1937 | // If draft, we keep it (should not happen) |
@@ -1963,7 +1963,7 @@ discard block |
||
| 1963 | 1963 | return $this->LibStatut($this->statut, $mode); |
| 1964 | 1964 | } |
| 1965 | 1965 | |
| 1966 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1966 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 1967 | 1967 | /** |
| 1968 | 1968 | * Return the label of a given contrat status |
| 1969 | 1969 | * |
@@ -1973,7 +1973,7 @@ discard block |
||
| 1973 | 1973 | */ |
| 1974 | 1974 | public function LibStatut($status, $mode) |
| 1975 | 1975 | { |
| 1976 | - // phpcs:enable |
|
| 1976 | + // phpcs:enable |
|
| 1977 | 1977 | global $langs; |
| 1978 | 1978 | |
| 1979 | 1979 | if (empty($this->labelStatus) || empty($this->labelStatusShort)) { |
@@ -2183,7 +2183,7 @@ discard block |
||
| 2183 | 2183 | } |
| 2184 | 2184 | } |
| 2185 | 2185 | |
| 2186 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2186 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2187 | 2187 | /** |
| 2188 | 2188 | * Return list of line rowid |
| 2189 | 2189 | * |
@@ -2192,7 +2192,7 @@ discard block |
||
| 2192 | 2192 | */ |
| 2193 | 2193 | public function array_detail($status = -1) |
| 2194 | 2194 | { |
| 2195 | - // phpcs:enable |
|
| 2195 | + // phpcs:enable |
|
| 2196 | 2196 | $tab = array(); |
| 2197 | 2197 | |
| 2198 | 2198 | $sql = "SELECT cd.rowid"; |
@@ -2264,7 +2264,7 @@ discard block |
||
| 2264 | 2264 | } |
| 2265 | 2265 | |
| 2266 | 2266 | |
| 2267 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2267 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 2268 | 2268 | /** |
| 2269 | 2269 | * Load indicators for dashboard (this->nbtodo and this->nbtodolate) |
| 2270 | 2270 | * |
@@ -2274,7 +2274,7 @@ discard block |
||
| 2274 | 2274 | */ |
| 2275 | 2275 | public function load_board($user, $mode) |
| 2276 | 2276 | { |
| 2277 | - // phpcs:enable |
|
| 2277 | + // phpcs:enable |
|
| 2278 | 2278 | global $conf, $langs; |
| 2279 | 2279 | |
| 2280 | 2280 | $this->from = " FROM " . MAIN_DB_PREFIX . "contrat as c"; |
@@ -3176,7 +3176,7 @@ discard block |
||
| 3176 | 3176 | return $this->LibStatut($this->statut, $mode, ((!empty($this->date_end)) ? ($this->date_end < dol_now() ? 1 : 0) : -1)); |
| 3177 | 3177 | } |
| 3178 | 3178 | |
| 3179 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3179 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3180 | 3180 | /** |
| 3181 | 3181 | * Return label of a contract line status |
| 3182 | 3182 | * |
@@ -3189,7 +3189,7 @@ discard block |
||
| 3189 | 3189 | */ |
| 3190 | 3190 | public static function LibStatut($status, $mode, $expired = -1, $moreatt = '', $morelabel = '') |
| 3191 | 3191 | { |
| 3192 | - // phpcs:enable |
|
| 3192 | + // phpcs:enable |
|
| 3193 | 3193 | global $langs; |
| 3194 | 3194 | $langs->load("contracts"); |
| 3195 | 3195 | |
@@ -3625,7 +3625,7 @@ discard block |
||
| 3625 | 3625 | } |
| 3626 | 3626 | |
| 3627 | 3627 | |
| 3628 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3628 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3629 | 3629 | /** |
| 3630 | 3630 | * Update in database the fields total_xxx of lines |
| 3631 | 3631 | * Used by migration process |
@@ -3634,7 +3634,7 @@ discard block |
||
| 3634 | 3634 | */ |
| 3635 | 3635 | public function update_total() |
| 3636 | 3636 | { |
| 3637 | - // phpcs:enable |
|
| 3637 | + // phpcs:enable |
|
| 3638 | 3638 | $this->db->begin(); |
| 3639 | 3639 | |
| 3640 | 3640 | // Mise a jour ligne en base |
@@ -3752,7 +3752,7 @@ discard block |
||
| 3752 | 3752 | } |
| 3753 | 3753 | } |
| 3754 | 3754 | |
| 3755 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3755 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3756 | 3756 | /** |
| 3757 | 3757 | * Activate a contract line |
| 3758 | 3758 | * |
@@ -3764,7 +3764,7 @@ discard block |
||
| 3764 | 3764 | */ |
| 3765 | 3765 | public function active_line($user, $date, $date_end = '', $comment = '') |
| 3766 | 3766 | { |
| 3767 | - // phpcs:enable |
|
| 3767 | + // phpcs:enable |
|
| 3768 | 3768 | $error = 0; |
| 3769 | 3769 | |
| 3770 | 3770 | $this->db->begin(); |
@@ -3810,7 +3810,7 @@ discard block |
||
| 3810 | 3810 | } |
| 3811 | 3811 | } |
| 3812 | 3812 | |
| 3813 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3813 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 3814 | 3814 | /** |
| 3815 | 3815 | * Close a contract line |
| 3816 | 3816 | * |
@@ -3822,7 +3822,7 @@ discard block |
||
| 3822 | 3822 | */ |
| 3823 | 3823 | public function close_line($user, $date_end_real, $comment = '', $notrigger = 0) |
| 3824 | 3824 | { |
| 3825 | - // phpcs:enable |
|
| 3825 | + // phpcs:enable |
|
| 3826 | 3826 | $this->date_cloture = $date_end_real; |
| 3827 | 3827 | $this->date_end_real = $date_end_real; |
| 3828 | 3828 | $this->user_closing_id = $user->id; |
@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | - use Luracast\Restler\RestException; |
|
| 22 | + use Luracast\Restler\RestException; |
|
| 23 | 23 | |
| 24 | - require_once constant('DOL_DOCUMENT_ROOT') . '/contrat/class/contrat.class.php'; |
|
| 24 | + require_once constant('DOL_DOCUMENT_ROOT') . '/contrat/class/contrat.class.php'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * API class for contracts |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | |
| 654 | 654 | |
| 655 | 655 | |
| 656 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 656 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
| 657 | 657 | /** |
| 658 | 658 | * Clean sensible object datas |
| 659 | 659 | * |
@@ -662,7 +662,7 @@ discard block |
||
| 662 | 662 | */ |
| 663 | 663 | protected function _cleanObjectDatas($object) |
| 664 | 664 | { |
| 665 | - // phpcs:enable |
|
| 665 | + // phpcs:enable |
|
| 666 | 666 | $object = parent::_cleanObjectDatas($object); |
| 667 | 667 | |
| 668 | 668 | unset($object->address); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | |
| 100 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 100 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 101 | 101 | /** |
| 102 | 102 | * Load an exportable dataset |
| 103 | 103 | * |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function load_arrays($user, $filter = '') |
| 109 | 109 | { |
| 110 | - // phpcs:enable |
|
| 110 | + // phpcs:enable |
|
| 111 | 111 | global $langs, $conf, $mysoc; |
| 112 | 112 | |
| 113 | 113 | dol_syslog(get_class($this) . "::load_arrays user=" . $user->id . " filter=" . $filter); |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | |
| 242 | 242 | |
| 243 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 243 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 244 | 244 | /** |
| 245 | 245 | * Build the sql export request. |
| 246 | 246 | * Arrays this->array_export_xxx are already loaded for required datatoexport |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | */ |
| 253 | 253 | public function build_sql($indice, $array_selected, $array_filterValue) |
| 254 | 254 | { |
| 255 | - // phpcs:enable |
|
| 255 | + // phpcs:enable |
|
| 256 | 256 | // Build the sql request |
| 257 | 257 | $sql = $this->array_export_sql_start[$indice]; |
| 258 | 258 | $i = 0; |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | return $sql; |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 315 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 316 | 316 | /** |
| 317 | 317 | * Build the conditional string from filter the query |
| 318 | 318 | * |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | */ |
| 324 | 324 | public function build_filterQuery($TypeField, $NameField, $ValueField) |
| 325 | 325 | { |
| 326 | - // phpcs:enable |
|
| 326 | + // phpcs:enable |
|
| 327 | 327 | $NameField = sanitizeVal($NameField, 'aZ09'); |
| 328 | 328 | $szFilterQuery = ''; |
| 329 | 329 | |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | return $Condition; |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 422 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 423 | 423 | /** |
| 424 | 424 | * Build an input field used to filter the query |
| 425 | 425 | * |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | */ |
| 431 | 431 | public function build_filterField($TypeField, $NameField, $ValueField) |
| 432 | 432 | { |
| 433 | - // phpcs:enable |
|
| 433 | + // phpcs:enable |
|
| 434 | 434 | global $conf, $langs, $form; |
| 435 | 435 | |
| 436 | 436 | $szFilterField = ''; |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | return $szMsg; |
| 586 | 586 | } |
| 587 | 587 | |
| 588 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 588 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 589 | 589 | /** |
| 590 | 590 | * Build export file. |
| 591 | 591 | * File is built into directory $conf->export->dir_temp.'/'.$user->id |
@@ -602,7 +602,7 @@ discard block |
||
| 602 | 602 | */ |
| 603 | 603 | public function build_file($user, $model, $datatoexport, $array_selected, $array_filterValue, $sqlquery = '', $separator = '') |
| 604 | 604 | { |
| 605 | - // phpcs:enable |
|
| 605 | + // phpcs:enable |
|
| 606 | 606 | global $conf, $langs, $mysoc; |
| 607 | 607 | |
| 608 | 608 | $indice = 0; |
@@ -909,7 +909,7 @@ discard block |
||
| 909 | 909 | } |
| 910 | 910 | } |
| 911 | 911 | |
| 912 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 912 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 913 | 913 | /** |
| 914 | 914 | * Output list all export models |
| 915 | 915 | * --TODO Move this into a class htmlxxx.class.php-- |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | */ |
| 919 | 919 | public function list_export_model() |
| 920 | 920 | { |
| 921 | - // phpcs:enable |
|
| 921 | + // phpcs:enable |
|
| 922 | 922 | global $conf, $langs; |
| 923 | 923 | |
| 924 | 924 | $sql = "SELECT em.rowid, em.field, em.label, em.type, em.filter"; |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | abstract class ModelePDFKnowledgeRecord extends CommonDocGenerator |
| 40 | 40 | { |
| 41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
| 42 | 42 | /** |
| 43 | 43 | * Return list of active generation modules |
| 44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public static function liste_modeles($db, $maxfilenamelength = 0) |
| 50 | 50 | { |
| 51 | - // phpcs:enable |
|
| 51 | + // phpcs:enable |
|
| 52 | 52 | global $conf; |
| 53 | 53 | |
| 54 | 54 | $type = 'knowledgerecord'; |