Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 2008 Revision 2419
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 2008 2017-02-02 19:03:01Z lars $
16
 * @version $Id: Artikel_model.php 2419 2021-04-02 12:23:58Z 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 42... Zeile 42...
42
	 * @return
42
	 * @return
43
	 */
43
	 */
44
	public function list_artikel($father, $return_zero_price = false, $start = 0, $limit = null)
44
	public function list_artikel($father, $return_zero_price = false, $start = 0, $limit = null)
45
	{
45
	{
46
		$artikel = array();
46
		$artikel = array();
47
		/*$this->db->select('ID');
-
 
48
		//$this->db->order_by('Lieferstatus', 'ASC');
-
 
49
		//$this->db->order_by('Rang', 'DESC');
-
 
50
		if (!is_null($limit))
-
 
51
		{
-
 
52
		$this->db->limit($limit, $start);
-
 
53
		}
-
 
54
		$query = $this->db->get_where('artikel', array(
-
 
55
		"father" => $father,
-
 
56
		"language" => "DE",
-
 
57
		"status" => 0,
-
 
58
		));*/
-
 
59
		$sql = 'SELECT
47
		$sql = 'SELECT
60
				SQL_CALC_FOUND_ROWS
48
				SQL_CALC_FOUND_ROWS
61
				ID
49
				ID
62
			FROM
50
			FROM
63
				artikel
51
				artikel