Subversion-Projekte lars-tiefland.ci

Revision

Revision 1855 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1855 Revision 2241
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: 1855 $
8
 * @version $Rev: 2241 $
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: Artikel_to_auspraegung_model.php 1855 2016-12-22 14:18:10Z lars $
17
 * @version $Id: Artikel_to_auspraegung_model.php 2241 2017-12-24 22:46:36Z lars $
18
 * @access public
18
 * @access public
19
 */
19
 */
20
class Artikel_to_auspraegung_model extends CI_Model
20
class Artikel_to_auspraegung_model extends CI_Model
21
{
21
{
Zeile 55... Zeile 55...
55
			WHERE
55
			WHERE
56
				artikel=".$artikel."
56
				artikel=".$artikel."
57
		";
57
		";
58
		$res = $this->db->query($sql);
58
		$res = $this->db->query($sql);
59
		$rows = array();
59
		$rows = array();
60
		while ($row = $res->unbuffered_row('array'))
60
		while ($arow = $res->unbuffered_row('array'))
61
		{
61
		{
62
			$row = $this->auspraegung->get($row["id"]);
62
			$row = $this->auspraegung->get($arow["id"]);
63
			$row["werte"] = $this->get_werte($row["id"], $artikel);
63
			$row["werte"] = $this->get_werte($arow["id"], $artikel);
64
			$row["wertebereich"] = $this->directory_to_auspraegung->get_werte($row["id"], $father);
64
			$row["wertebereich"] = $this->directory_to_auspraegung->get_werte($arow["id"], $father);
65
			$rows[$row["id"]] = $row;
65
			$rows[$arow["id"]] = $row;
66
		}
66
		}
67
		return $rows;
67
		return $rows;
68
	}
68
	}
Zeile 69... Zeile 69...
69
 
69