Exemplo n.º 1
0
 /**
  * The class constructor sets the instance of the given enlight application into
  * the internal $application property.
  *
  * @param Enlight_Application $application
  */
 public function __construct(Enlight_Application $application)
 {
     $this->setApplication($application);
     parent::__construct();
     //$options = $application->getOptions();
     //$this->setOptions($options);
 }
Exemplo n.º 2
0
 /**
  * The Enlight_Controller_Action class constructor expects an instance of the
  * Enlight_Controller_Request_Request and an instance of the Enlight_Controller_Response_Response.
  * The response and request instance will be passed to the init events of the class and the controller.
  *
  * @param   Enlight_Controller_Request_Request   $request
  * @param   Enlight_Controller_Response_Response $response
  */
 public function __construct(Enlight_Controller_Request_Request $request, Enlight_Controller_Response_Response $response)
 {
     $this->setRequest($request)->setResponse($response);
     $this->controller_name = $this->Front()->Dispatcher()->getFullControllerName($this->Request());
     Enlight_Application::Instance()->Events()->notify(__CLASS__ . '_Init', array('subject' => $this, 'request' => $this->Request(), 'response' => $this->Response()));
     Enlight_Application::Instance()->Events()->notify(__CLASS__ . '_Init_' . $this->controller_name, array('subject' => $this, 'request' => $this->Request(), 'response' => $this->Response()));
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * The Enlight_Plugin_Bootstrap expects a name for the plugin and
  * optionally an instance of the Enlight_Plugin_PluginCollection
  *
  * @param $name
  */
 public function __construct($name)
 {
     $this->name = (string) $name;
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->modelManager = Shopware()->Models();
 }
Exemplo n.º 5
0
 /**
  * The Enlight_Plugin_Bootstrap expects a name for the plugin and
  * optionally an instance of the Enlight_Plugin_PluginCollection
  *
  * @param $name
  * @param Enlight_Plugin_PluginCollection $collection
  */
 public function __construct($name, $collection = null)
 {
     $this->name = (string) $name;
     $this->setCollection($collection);
     parent::__construct();
 }
Exemplo n.º 6
0
 /**
  * @param Enlight_Event_EventManager $eventManager
  */
 public function __construct(Enlight_Event_EventManager $eventManager)
 {
     $this->eventManager = $eventManager;
     parent::__construct();
 }
Exemplo n.º 7
0
 /**
  * The Enlight_Plugin_PluginCollection class constructor initials the internal plugin list.
  */
 public function __construct()
 {
     $this->plugins = new ArrayObject();
     parent::__construct();
 }