@@ 349-360 (lines=12) @@ | ||
346 | ||
347 | ||
348 | ||
349 | public function archive() |
|
350 | { |
|
351 | global $babDB; |
|
352 | ||
353 | $babDB->db_query(" |
|
354 | UPDATE absences_cet_deposit_request |
|
355 | SET |
|
356 | archived=".$babDB->quote(1)." |
|
357 | WHERE |
|
358 | id=".$babDB->quote($this->id)." |
|
359 | "); |
|
360 | } |
|
361 | ||
362 | ||
363 | ||
@@ 364-375 (lines=12) @@ | ||
361 | ||
362 | ||
363 | ||
364 | public function setNotified() |
|
365 | { |
|
366 | global $babDB; |
|
367 | ||
368 | $babDB->db_query(" |
|
369 | UPDATE absences_cet_deposit_request |
|
370 | SET |
|
371 | appr_notified=".$babDB->quote(1)." |
|
372 | WHERE |
|
373 | id=".$babDB->quote($this->id)." |
|
374 | "); |
|
375 | } |
|
376 | ||
377 | ||
378 | public function getManagerEditUrl() |
@@ 454-465 (lines=12) @@ | ||
451 | } |
|
452 | ||
453 | ||
454 | public function archive() |
|
455 | { |
|
456 | global $babDB; |
|
457 | ||
458 | $babDB->db_query(" |
|
459 | UPDATE absences_workperiod_recover_request |
|
460 | SET |
|
461 | archived=".$babDB->quote(1)." |
|
462 | WHERE |
|
463 | id=".$babDB->quote($this->id)." |
|
464 | "); |
|
465 | } |
|
466 | ||
467 | ||
468 | ||
@@ 469-480 (lines=12) @@ | ||
466 | ||
467 | ||
468 | ||
469 | public function setNotified() |
|
470 | { |
|
471 | global $babDB; |
|
472 | ||
473 | $babDB->db_query(" |
|
474 | UPDATE absences_workperiod_recover_request |
|
475 | SET |
|
476 | appr_notified=".$babDB->quote(1)." |
|
477 | WHERE |
|
478 | id=".$babDB->quote($this->id)." |
|
479 | "); |
|
480 | } |
|
481 | ||
482 | ||
483 | public function getManagerEditUrl() |
@@ 1843-1853 (lines=11) @@ | ||
1840 | return $year; |
|
1841 | } |
|
1842 | ||
1843 | public function archive() |
|
1844 | { |
|
1845 | global $babDB; |
|
1846 | ||
1847 | $babDB->db_query(" |
|
1848 | UPDATE absences_entries |
|
1849 | SET archived=".$babDB->quote(1)." |
|
1850 | WHERE |
|
1851 | id=".$babDB->quote($this->id)." |
|
1852 | "); |
|
1853 | } |
|
1854 | ||
1855 | ||
1856 | public function setNotified() |
|
@@ 1856-1871 (lines=16) @@ | ||
1853 | } |
|
1854 | ||
1855 | ||
1856 | public function setNotified() |
|
1857 | { |
|
1858 | global $babDB; |
|
1859 | ||
1860 | if (!$this->id) |
|
1861 | { |
|
1862 | throw new Exception('Missing ID'); |
|
1863 | } |
|
1864 | ||
1865 | $babDB->db_query(" |
|
1866 | UPDATE absences_entries |
|
1867 | SET appr_notified=".$babDB->quote(1)." |
|
1868 | WHERE |
|
1869 | id=".$babDB->quote($this->id)." |
|
1870 | "); |
|
1871 | } |
|
1872 | ||
1873 | ||
1874 | public function getManagerEditUrl() |