Beispiel #1
0
 /**
  * Create the edit mask.
  *
  * @param BackendViewInterface $view          The view in use.
  *
  * @param ModelInterface       $model         The model with the current data.
  *
  * @param ModelInterface       $originalModel The data from the original data.
  *
  * @param callable             $preFunction   The function to call before saving an item.
  *
  * @param callable             $postFunction  The function to call after saving an item.
  *
  * @param string               $breadcrumb    The rendered breadcrumb.
  */
 public function __construct($view, $model, $originalModel, $preFunction, $postFunction, $breadcrumb)
 {
     $this->environment = $view->getEnvironment();
     $this->model = $model;
     $this->originalModel = $originalModel;
     $this->preFunction = $preFunction;
     $this->postFunction = $postFunction;
     $this->breadcrumb = $breadcrumb;
 }
 /**
  * Retrieve the environment.
  *
  * @return EnvironmentInterface
  */
 protected function getEnvironment()
 {
     return $this->view->getEnvironment();
 }
Beispiel #3
0
 /**
  * Retrieve the environment.
  *
  * @return EnvironmentInterface
  */
 public function getEnvironment()
 {
     return $this->view->getEnvironment();
 }