public function initialize(AgaviContext $ctx, array $parameters = array())
 {
     parent::initialize($ctx, $parameters);
     if (isset($parameters["type"])) {
         $this->setType($parameters["type"]);
     } else {
         $this->model = $this->getModel();
     }
 }
 /**
  * (non-PHPdoc)
  * @see lib/agavi/src/model/AgaviModel#initialize($context, $parameters)
  */
 public function initialize(AgaviContext $c, array $p = array())
 {
     parent::initialize($c, $p);
     // We need all settings from configuration here
     $this->mapConfig();
     // Notice about missing IcingaApi
     $this->checkClass();
     $this->initConnection();
     $this->initDispatcher();
 }
 public function initialize(AgaviContext $context, array $parameters = array())
 {
     parent::initialize($context, $parameters);
     $this->configAll = AgaviConfig::get('modules.web.simpledataprovider');
     $this->apiSearch = $this->getContext()->getModel('Icinga.ApiContainer', 'Web')->createSearch();
     /**
      * @todo Use new Implementation (Doctrine Query)
      */
     IcingaPrincipalTargetTool::applyApiSecurityPrincipals($this->apiSearch);
     $this->tm = $this->getContext()->getTranslationManager();
 }
 public function initialize(AgaviContext $c, array $p = array())
 {
     parent::initialize($c, $p);
     $this->apiData = $this->getContext()->getModel("Store.LegacyLayer.IcingaApi", "Api", array("connection" => "icinga"));
 }