protected function buildInternal() { parent::buildInternal(); if ($this->extended_selected) { // note the only page with an extended-selection that accesses this // is the pending photos page - so the message can be more // specific. $message = $this->ui->getWidget('confirmation_message'); $message->content_type = 'text/xml'; $message->content = Pinhole::_('<strong>Update the date/time/' . 'time-zone of all pending photos.</strong>'); } else { $this->ui->getWidget('confirmation_frame')->classes[] = 'two-column'; $container = $this->ui->getWidget('confirmation_container'); $photo_view = $this->ui->getWidget('photo_view'); $store = new SwatTableStore(); foreach ($this->getPhotos() as $photo) { $ds = new SwatDetailsStore(); $ds->photo = $photo; $store->add($ds); } $photo_view->model = $store; $message = $this->ui->getWidget('confirmation_message'); $message->content_type = 'text/xml'; $message->content = sprintf(Pinhole::_('<strong>Update the ' . 'date/time/time-zone of the following %s:</strong>'), Pinhole::ngettext('photo', 'photos', count($store))); } }
protected function buildInternal() { parent::buildInternal(); $this->ui->getWidget('source_tag')->content = $this->source_tag->title; }