Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1930 Revision 2382
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: 1930 $
8
 * @version $Rev: 2382 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Artikelstamm extends CI_Controller
11
class Artikelstamm extends CI_Controller
12
{
12
{
13
	public function __construct()
13
	public function __construct()
14
	{
14
	{
15
		parent::__construct();
15
		parent::__construct();
16
		$this->load->model('artikel_model', 'artikel');
16
		$this->load->model('artikel_model', 'artikel');
17
		$this->load->model('directory_model', 'directory');
17
		$this->load->model('directory_model', 'directory');
18
		$sql = "SELECT
18
		$sql = "SELECT
19
	            id,
19
				id,
20
	            name
20
				name
21
	        FROM
21
			FROM
22
	            content_management.medien_typ
22
				content_management.medien_typ
23
	    ";
23
		";
24
		$res = $this->db->query($sql);
24
		$res = $this->db->query($sql);
25
		while ($row = $res->unbuffered_row('array'))
25
		while ($row = $res->unbuffered_row('array'))
26
		{
26
		{
27
			$typen[$row['id']] = $row['name'];
27
			$typen[$row['id']] = $row['name'];