_getDataObj()->getPrimaryKey())) { return $url . '/' . $galleryId; } return null; } protected function _postInsert() { parent::_postInsert(); $this->_changeBackUrl(); return $this; } protected function _postUpdate() { parent::_postUpdate(); $this->_changeBackUrl(); return $this; } protected function _changeBackUrl() { 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, ['type' => Qs_SiteMap::classToType(get_called_class())], null, 'url'); } return $url; } }