public function initialize(AgaviContext $context, array $parameters = array()) { parent::initialize($context, $parameters); $this->__client = $this->getParameter('client'); $this->__uri = $this->getParameter('uri', null); if (!$this->__client instanceof Reporting_JasperSoapFactoryModel) { throw new AppKitModelException('Client must be instance of Reporting_JasperSoapFactoryModel'); } if ($this->__uri === null) { throw new AppKitModelException('Model must have uri parameter'); } }
public function initialize(AgaviContext $context, array $parameters = array()) { parent::initialize($context, $parameters); $this->__uri = $this->getParameter('uri'); $this->__client = $this->getParameter('client'); if (!$this->__client instanceof JasperSoapMultipartClient) { throw new AppKitModelException('Model needs a JasperSoapMultipart client to get work'); } if (!$this->__uri) { throw new AppKitModelException('Parameter uri is mandatory'); } if (!$this->checkUri($this->__uri)) { throw new AppKitModelException('URI does not match jasper config. Possible security issue!'); } }
public function initialize(AgaviContext $context, array $parameters = array()) { parent::initialize($context, $parameters); $this->__soap = $this->getParameter('client'); $this->__parent = $this->getParameter('parentid'); $this->__filter = $this->getParameter('filter', null); $this->__wsTypeIcons = AgaviConfig::get('modules.reporting.icon.wsType.mapping', array()); if (!$this->__soap instanceof SoapClient) { throw new AppKitModelException('Model needs a soap client, parameter client'); } if (!$this->__parent) { throw new AppKitModelException('Parent node (parameter parentid) not given'); } if ($this->__filter && !$this->__filter instanceof Reporting_JasperTreeFilterModel) { throw new AppKitModelException('Filter must be a Reporting_JasperTreeFilterModel'); } }
public function initialize(AgaviContext $context, array $parameters = array()) { parent::initialize($context, $parameters); }