public function save() { if ($this->lockcount > 0) { return; } if ($this->dbversion) { return tstorage::save($this); } else { return parent::save(); } }