_getDataObj()->getPrimaryKey())) { return $url . '/' . $galleryId; } return null; } protected function _postInsert() { parent::_postInsert(); if ('1' == $this->_getDataObj()->getData('submitAndManage')) { $this->_setBackUrl($this->_getManageAlbumUrl()); } return $this; } protected function _postUpdate() { parent::_postUpdate(); if ('1' == $this->_getDataObj()->getData('submitAndManage')) { $this->_setBackUrl($this->_getManageAlbumUrl()); } return $this; } public static function getPageUrl() { static $url; if (null === $url) { $url = Qs_SiteMap::findFirst( null, array('type' => Qs_SiteMap::classToType(get_called_class())), null, 'url' ); } return $url; } }