protected function saveDBData() { $values = $this->ui->getValues(array('title', 'shortname')); $this->tag->title = $values['title']; -($this->tag->shortname = $values['shortname']); if ($this->id === null) { $now = new SwatDate(); $now->toUTC(); $this->tag->createdate = $now; $this->tag->instance = $this->app->getInstanceId(); } if ($this->tag->isModified()) { $this->tag->save(); if (isset($this->app->memcache)) { $this->app->memcache->flushNs('tags'); // only clear the posts when editing an existing tag if ($this->id !== null) { $this->app->memcache->flushNs('posts'); } } $message = new SwatMessage(sprintf(Blorg::_('ā%sā has been saved.'), $this->tag->title)); $this->app->messages->add($message); } }