Lazer\Classes\Core_Database::save PHP Метод

save() публичный Метод

Saving inserted or updated data
public save ( )
    public function save()
    {
        $data = $this->getData();
        if (!$this->currentId) {
            $config = $this->config();
            $config->last_id++;
            $this->set->id = $config->last_id;
            array_push($data, $this->set);
            Helpers\Config::table($this->name)->put($config);
        } else {
            $this->set->id = $this->currentId;
            $data[$this->currentKey] = $this->set;
        }
        Helpers\Data::table($this->name)->put($data);
        //         $this->setFields();
    }