/**
  * Sets default values for a new album
  *
  * @return bool
  */
 protected function setDefaults()
 {
     global $_zp_gallery;
     // Set default data for a new Album (title and parent_id)
     parent::setDefaults();
     $parentalbum = $this->getParent();
     $this->set('mtime', filemtime($this->localpath));
     $this->setDateTime(strftime('%Y-%m-%d %H:%M:%S', $this->get('mtime')));
     $title = trim($this->name);
     if (!is_null($parentalbum)) {
         $this->set('parentid', $parentalbum->getID());
         $title = substr($title, strrpos($title, '/') + 1);
     }
     $this->set('title', $title);
     return true;
 }