/** * Relocates to the previous page after processsing confirmation response */ protected function relocate() { // Work around AdminDBDelete behaviour. If the delete wasn't succesful // and we still want to relocate, relocate to the page we can from, // don't force a relocate to the root of the component. if ($this->success) { parent::relocate(); } else { AdminDBConfirmation::relocate(); } }
public function finalize() { parent::finalize(); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-tile.css', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatStyleSheetHtmlHeadEntry('packages/pinhole/admin/styles/pinhole-photo-time.css', Pinhole::PACKAGE_ID)); $this->layout->addHtmlHeadEntry(new SwatJavaScriptHtmlHeadEntry('packages/pinhole/admin/javascript/pinhole-photo-time.js', Pinhole::PACKAGE_ID)); }
protected function buildInternal() { parent::buildInternal(); $this->ui->getWidget('source_tag')->content = $this->source_tag->title; }