예제 #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);
 }
예제 #2
0
파일: Action.php 프로젝트: nhp/shopware-4
 /**
  * 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();
 }
예제 #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();
 }
예제 #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();
 }
예제 #6
0
 /**
  * @param Enlight_Event_EventManager $eventManager
  */
 public function __construct(Enlight_Event_EventManager $eventManager)
 {
     $this->eventManager = $eventManager;
     parent::__construct();
 }
예제 #7
0
 /**
  * The Enlight_Plugin_PluginCollection class constructor initials the internal plugin list.
  */
 public function __construct()
 {
     $this->plugins = new ArrayObject();
     parent::__construct();
 }