@@ 171-183 (lines=13) @@ | ||
168 | * @param string $name |
|
169 | * @return false|array |
|
170 | */ |
|
171 | public function get_module_link($name) { |
|
172 | ||
173 | $this->db->select('identif'); |
|
174 | $this->db->where('name', $name); |
|
175 | $query = $this->db->get('components', 1); |
|
176 | ||
177 | if ($query->num_rows() == 1) { |
|
178 | $data = $query->row_array(); |
|
179 | return $data['identif']; |
|
180 | } else { |
|
181 | return FALSE; |
|
182 | } |
|
183 | } |
|
184 | ||
185 | } |
|
186 |
@@ 365-379 (lines=15) @@ | ||
362 | * @param string $name |
|
363 | * @return bool|array |
|
364 | */ |
|
365 | public function get_field($name) { |
|
366 | ||
367 | $this->db->limit(1); |
|
368 | $this->db->where('field_name', $name); |
|
369 | $query = $this->db->get('content_fields'); |
|
370 | ||
371 | if ($query->num_rows() == 1) { |
|
372 | $data = $query->row_array(); |
|
373 | $data['data'] = unserialize($data['data']); |
|
374 | ||
375 | return $data; |
|
376 | } else { |
|
377 | return false; |
|
378 | } |
|
379 | } |
|
380 | ||
381 | /** |
|
382 | * Display template file |