Example #1
0
 /**
  * assign all public members of the storage-object either to a (*default*) placeholder
  * or to a new member of the view
  * @param string $toPlaceholder
  * @return View
  */
 public function assignViewVars($toPlaceholder = 'content')
 {
     $placeholder = $this->_view->getPlaceholder();
     if ($placeholder !== $toPlaceholder) {
         $this->_view->setDefaultPlaceholder($toPlaceholder);
     }
     $this->_view->{$toPlaceholder} = $this->getData();
     return $this->_view;
 }