Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1841 Revision 1842
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1841 $
8
 * @version $Rev: 1842 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
/**
11
/**
12
 * Auspraegung_model
12
 * Auspraegung_model
13
 * 
13
 * 
14
 * @package WebanOS CI
14
 * @package WebanOS CI
15
 * @author Lars Tiefland
15
 * @author Lars Tiefland
16
 * @copyright 2016
16
 * @copyright 2016
17
 * @version $Id: Directory_to_auspraegung_model.php 1841 2016-12-22 09:01:57Z lars $
17
 * @version $Id: Directory_to_auspraegung_model.php 1842 2016-12-22 09:03:03Z lars $
18
 * @access public
18
 * @access public
19
 */
19
 */
20
class Directory_to_auspraegung_model extends CI_Model
20
class Directory_to_auspraegung_model extends CI_Model
21
{
21
{
Zeile 75... Zeile 75...
75
	 * @return
75
	 * @return
76
	 */
76
	 */
77
	public function get_werte($id, $father)
77
	public function get_werte($id, $father)
78
	{
78
	{
79
		$path = array_reverse(getPath($father, true));
79
		$path = array_reverse(getPath($father, true));
80
		var_dump($path);
-
 
81
		$werte = array();
80
		$werte = array();
82
		foreach ($path as $dir)
81
		foreach ($path as $dir)
83
		{
82
		{
84
			$directory = $dir["ID"];
83
			$directory = $dir["ID"];
85
			$sql = "SELECT
84
			$sql = "SELECT
Zeile 89... Zeile 88...
89
				WHERE
88
				WHERE
90
					auspraegung=".$id."
89
					auspraegung=".$id."
91
				AND
90
				AND
92
					directory=".$directory."
91
					directory=".$directory."
93
			";
92
			";
94
			var_dump($sql);
-
 
95
			$res = $this->db->query($sql);
93
			$res = $this->db->query($sql);
96
			while ($row = $res->unbuffered_row('array'))
94
			while ($row = $res->unbuffered_row('array'))
97
			{
95
			{
98
				$werte[] = $row["wertebereich"];
96
				$werte[] = $row["wertebereich"];
99
			}
97
			}