@@ 78-95 (lines=18) @@ | ||
75 | * |
|
76 | * @return array |
|
77 | */ |
|
78 | public function getRow() |
|
79 | { |
|
80 | if (null === $this->row) |
|
81 | { |
|
82 | global $babDB; |
|
83 | $query = 'SELECT * FROM absences_cet_deposit_request WHERE '; |
|
84 | ||
85 | if (isset($this->id)) |
|
86 | { |
|
87 | $query .= 'id='.$babDB->quote($this->id); |
|
88 | } |
|
89 | ||
90 | $res = $babDB->db_query($query); |
|
91 | $this->setRow($babDB->db_fetch_assoc($res)); |
|
92 | } |
|
93 | ||
94 | return $this->row; |
|
95 | } |
|
96 | ||
97 | ||
98 |
@@ 55-73 (lines=19) @@ | ||
52 | * |
|
53 | * @return array |
|
54 | */ |
|
55 | public function getRow() |
|
56 | { |
|
57 | if (null === $this->row) |
|
58 | { |
|
59 | global $babDB; |
|
60 | ||
61 | $query = 'SELECT * FROM absences_rights_inperiod WHERE '; |
|
62 | ||
63 | if (isset($this->id)) |
|
64 | { |
|
65 | $query .= 'id='.$babDB->quote($this->id); |
|
66 | } |
|
67 | ||
68 | $res = $babDB->db_query($query); |
|
69 | $this->setRow($babDB->db_fetch_assoc($res)); |
|
70 | } |
|
71 | ||
72 | return $this->row; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * |