@@ 182-198 (lines=17) @@ | ||
179 | * @param int $id auctionid of the auction |
|
180 | * @return mixed reference to the {@link auction} object, FALSE if failed |
|
181 | */ |
|
182 | public function &get($id) |
|
183 | { |
|
184 | if ((int)($id) <= 0) { |
|
185 | return false; |
|
186 | } |
|
187 | ||
188 | $criteria = new CriteriaCompo(new Criteria('auction_id', $id)); |
|
189 | $criteria->setLimit(1); |
|
190 | $obj_array = $this->getObjects($criteria); |
|
191 | if (count($obj_array) != 1) { |
|
192 | $obj =& $this->create(); |
|
193 | ||
194 | return $obj; |
|
195 | } |
|
196 | ||
197 | return $obj_array[0]; |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * @get rows |
@@ 164-180 (lines=17) @@ | ||
161 | * @param int $id groupid of the group |
|
162 | * @return mixed reference to the {@link group} object, FALSE if failed |
|
163 | */ |
|
164 | public function &get($id) |
|
165 | { |
|
166 | if ((int)($id) <= 0) { |
|
167 | return false; |
|
168 | } |
|
169 | ||
170 | $criteria = new CriteriaCompo(new Criteria('group_id', $id)); |
|
171 | $criteria->setLimit(1); |
|
172 | $obj_array = $this->getObjects($criteria); |
|
173 | if (count($obj_array) != 1) { |
|
174 | $obj =& $this->create(); |
|
175 | ||
176 | return $obj; |
|
177 | } |
|
178 | ||
179 | return $obj_array[0]; |
|
180 | } |
|
181 | ||
182 | /** |
|
183 | * @get rows |
@@ 102-118 (lines=17) @@ | ||
99 | * @param int $id hotelcityid of the hotelcity |
|
100 | * @return mixed reference to the {@link HotelCity} object, FALSE if failed |
|
101 | */ |
|
102 | public function &get($id) |
|
103 | { |
|
104 | if ((int)($id) <= 0) { |
|
105 | return false; |
|
106 | } |
|
107 | ||
108 | $criteria = new CriteriaCompo(new Criteria('city_id', $id)); |
|
109 | $criteria->setLimit(1); |
|
110 | $obj_array = $this->getObjects($criteria); |
|
111 | if (count($obj_array) != 1) { |
|
112 | $obj =& $this->create(); |
|
113 | ||
114 | return $obj; |
|
115 | } |
|
116 | ||
117 | return $obj_array[0]; |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * @得到列表 |
@@ 118-134 (lines=17) @@ | ||
115 | * @param int $id promotionid of the hotel promotion |
|
116 | * @return mixed reference to the {@link promotion} object, FALSE if failed |
|
117 | */ |
|
118 | public function &get($id) |
|
119 | { |
|
120 | if ((int)($id) <= 0) { |
|
121 | return false; |
|
122 | } |
|
123 | ||
124 | $criteria = new CriteriaCompo(new Criteria('promotion_id', $id)); |
|
125 | $criteria->setLimit(1); |
|
126 | $obj_array = $this->getObjects($criteria); |
|
127 | if (count($obj_array) != 1) { |
|
128 | $obj =& $this->create(); |
|
129 | ||
130 | return $obj; |
|
131 | } |
|
132 | ||
133 | return $obj_array[0]; |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * @得到列表 |
@@ 111-127 (lines=17) @@ | ||
108 | * @param int $id hotelserviceid of the hotelservice |
|
109 | * @return mixed reference to the {@link hotelservice} object, FALSE if failed |
|
110 | */ |
|
111 | public function &get($id) |
|
112 | { |
|
113 | if ((int)($id) <= 0) { |
|
114 | return false; |
|
115 | } |
|
116 | ||
117 | $criteria = new CriteriaCompo(new Criteria('service_id', $id)); |
|
118 | $criteria->setLimit(1); |
|
119 | $obj_array = $this->getObjects($criteria); |
|
120 | if (count($obj_array) != 1) { |
|
121 | $obj =& $this->create(); |
|
122 | ||
123 | return $obj; |
|
124 | } |
|
125 | ||
126 | return $obj_array[0]; |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * @得到列表 |
@@ 73-89 (lines=17) @@ | ||
70 | * @param int $id hotelservicetypeid of the hotelservicetype |
|
71 | * @return mixed reference to the {@link hotelservicetype} object, FALSE if failed |
|
72 | */ |
|
73 | public function &get($id) |
|
74 | { |
|
75 | if ((int)($id) <= 0) { |
|
76 | return false; |
|
77 | } |
|
78 | ||
79 | $criteria = new CriteriaCompo(new Criteria('service_type_id', $id)); |
|
80 | $criteria->setLimit(1); |
|
81 | $obj_array = $this->getObjects($criteria); |
|
82 | if (count($obj_array) != 1) { |
|
83 | $obj =& $this->create(); |
|
84 | ||
85 | return $obj; |
|
86 | } |
|
87 | ||
88 | return $obj_array[0]; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @得到列表 |
@@ 204-220 (lines=17) @@ | ||
201 | * @param int $id roomid of the room |
|
202 | * @return mixed reference to the {@link room} object, FALSE if failed |
|
203 | */ |
|
204 | public function &get($id) |
|
205 | { |
|
206 | if ((int)($id) <= 0) { |
|
207 | return false; |
|
208 | } |
|
209 | ||
210 | $criteria = new CriteriaCompo(new Criteria('room_id', $id)); |
|
211 | $criteria->setLimit(1); |
|
212 | $obj_array = $this->getObjects($criteria); |
|
213 | if (count($obj_array) != 1) { |
|
214 | $obj =& $this->create(); |
|
215 | ||
216 | return $obj; |
|
217 | } |
|
218 | ||
219 | return $obj_array[0]; |
|
220 | } |
|
221 | ||
222 | /** |
|
223 | * @get rows |