/**
  * Create a new instance.
  *
  * @param EnvironmentInterface $environment  The environment.
  * @param Action               $action       The called action.
  * @param ModelIdInterface[]   $modelIds     The list of model ids being parsed.
  * @param string               $submitAction The submit action name.
  */
 public function __construct(EnvironmentInterface $environment, Action $action, array $modelIds, $submitAction)
 {
     parent::__construct($environment, $action);
     $this->modelIds = $modelIds;
     $this->submitAction = $submitAction;
 }
Пример #2
0
 /**
  * Create a new instance.
  *
  * @param EnvironmentInterface $environment The environment in use.
  * @param Action               $action      The action.
  * @param string               $viewName    The view name.
  * @param array                $context     The context attributes.
  */
 public function __construct(EnvironmentInterface $environment, Action $action, $viewName, array $context)
 {
     parent::__construct($environment, $action);
     $this->viewName = (string) $viewName;
     $this->context = $context;
 }