Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1825 Revision 1828
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: 1825 $
8
 * @version $Rev: 1828 $
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 1825 2016-12-21 19:15:20Z lars $
17
 * @version $Id: Artikel_to_auspraegung_model.php 1828 2016-12-21 19:18:18Z 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 47... Zeile 47...
47
		$res = $this->db->query($sql);
47
		$res = $this->db->query($sql);
48
		$rows = array();
48
		$rows = array();
49
		while ($row = $res->unbuffered_row('array'))
49
		while ($row = $res->unbuffered_row('array'))
50
		{
50
		{
51
			$row = $this->auspraegung->get($row["id"]);
51
			$row = $this->auspraegung->get($row["id"]);
52
			$row["werte"] = $this->get($row["id"]);
52
			$row["werte"] = $this->get_werte($row["id"]);
53
			$rows[$row["auspraegung"]][] = $row;
53
			$rows[$row["auspraegung"]][] = $row;
54
		}
54
		}
55
		return $rows;
55
		return $rows;
56
	}
56
	}