Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 756 Revision 1994
Zeile 11... Zeile 11...
11
 * Liest alle Daten für Artikel
11
 * Liest alle Daten für Artikel
12
 * 
12
 * 
13
 * @package WebanOS CI
13
 * @package WebanOS CI
14
 * @author Lars Tiefland
14
 * @author Lars Tiefland
15
 * @copyright 2016
15
 * @copyright 2016
16
 * @version $Id: Artikel_model.php 732 2016-09-30 22:57:30Z lars $
16
 * @version $Id: Artikel_model.php 1994 2017-02-01 19:32:19Z lars $
17
 * @access public
17
 * @access public
18
 */
18
 */
19
class Artikel_model extends CI_Model
19
class Artikel_model extends CI_Model
20
{
20
{
21
	/**
21
	/**
Zeile 101... Zeile 101...
101
	 * 
101
	 * 
102
	 * @param mixed $id
102
	 * @param mixed $id
103
	 * @param bool $return
103
	 * @param bool $return
104
	 * @return
104
	 * @return
105
	 */
105
	 */
106
	public function get_artikel($id, $return = false)
106
	public function get_artikel($id, $return = false, $versand = false)
107
	{
107
	{
108
		if (is_numeric($id))
108
		if (is_numeric($id))
109
		{
109
		{
110
			if ($return === false)
110
			if ($return === false)
111
			{
111
			{
112
				$link = $this->get_link($id, 1);
112
				$link = $this->get_link($id, 1);
113
				header("Location: ".$link);
113
				header("Location: ".$link);
114
			}
114
			}
115
			else
115
			else
116
			{
116
			{
117
				$row = $this->get_item_info($id);
117
				$row = $this->get_item_info($id, ($versand));
118
				return $row;
118
				return $row;
119
			}
119
			}
120
		}
120
		}
121
		else
121
		else
122
		{
122
		{