Resources/contao/classes/stack/StackDatabase.php
public function push(array $item)
    {
        if (count($item)) {
            $data   = serialize($item);
            $query  = 'INSERT INTO `' . $this->table . '` SET ';
            $query .= '`data` = \'' . $data . '\', ';
            $query .= ' `tstamp` = ' . time();
            $this->execute($query);
        }
    }
public function push(array $item)
    {
        if (count($item)) {
            $data   = serialize($item);
            $query  = 'INSERT INTO `' . $this->table . '` SET ';
            $query .= '`data` = \'' . $data . '\', ';
            $query .= ' `tstamp` = ' . time();
            $this->execute($query);
        }
    }
Fügt dem Stack ein Element hinzu.
@param $item