Пример #1
0
 public function renderEdit()
 {
     $VideoId = $this->getInt('id');
     $form = new VideoForm('editVideo');
     $form->bindMapper(new Video($VideoId));
     return new VideoFormView("Edit Video", $form);
 }
Пример #2
0
 /**
  * @param string                                                  $heading
  * @param  \Qubes\Support\Applications\Back\Video\Forms\VideoForm $form
  */
 public function __construct($heading, $form)
 {
     $this->heading = $heading;
     $this->_form = $form;
     if ($form->getMapper() instanceof Video) {
         $this->_video = $form->getMapper();
     }
 }