Subversion-Projekte lars-tiefland.ci

Revision

Revision 1489 | Revision 1711 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1489 Revision 1657
Zeile 15... Zeile 15...
15
		";
15
		";
16
		$res = $this->db->query($sql);
16
		$res = $this->db->query($sql);
17
		$dirs = $res->result_array();
17
		$dirs = $res->result_array();
18
		return $dirs;
18
		return $dirs;
19
	}
19
	}
-
 
20
 
-
 
21
	public function get($id)
-
 
22
	{
-
 
23
		$sql = "SELECT
-
 
24
				*
-
 
25
			FROM
-
 
26
				directory
-
 
27
			WHERE
-
 
28
				id=".$id."
-
 
29
		";
-
 
30
		$res = $this->db->query($sql);
-
 
31
		$row = $res->unbuffered_row('array');
-
 
32
		$sql = "SELECT
-
 
33
				meta_content,
-
 
34
				meta_type
-
 
35
			FROM
-
 
36
				metatags
-
 
37
			WHERE
-
 
38
				table_foreign='directory'
-
 
39
			AND
-
 
40
				data_foreign=".$id."
-
 
41
		";
-
 
42
		$res = $this->db->query($sql);
-
 
43
		while ($metaRow = $res->unbuffered_row('array'))
-
 
44
		{
-
 
45
			$row[$metaRow["meta_type"]] = $metaRow["meta_content"];
-
 
46
		}
-
 
47
		return $row;
-
 
48
	}
20
}
49
}