Esempio n. 1
0
 /**
  * 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();
     }
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 protected function buildInternal()
 {
     parent::buildInternal();
     $this->ui->getWidget('source_tag')->content = $this->source_tag->title;
 }