/** * Parse params, coming directly from WDataSet object. * * Nodes, other from "<datasource>" are ignored. * * @param SimpleXMLElement instance of WDataSet node of * the document tree. * @return null */ function parseParams(SimpleXMLElement $elem) { parent::parseParams($elem); foreach ($elem->datasource as $ds) { if (isset($ds['method'])) { $this->datasource_methods[] = (string) $ds['method']; } else { throw new DataObjectException("Data source method was not found"); } $this->datasource_params[] = new DataObjectParams($ds); } }
/** * Parse params, coming directly from WPageHandler object. * * @param SimpleXMLElement instance of WPageHandler node of * the document tree. * @return null * @throws DataObjectException */ function parseParams(SimpleXMLElement $elem) { parent::parseParams($elem); if (isset($elem->handler)) { if (isset($elem->handler['method'])) { $this->handler_method = (string) $elem->handler['method']; } else { throw new DataObjectException("Handler method was not found"); } } $this->handler_params = new DataObjectParams($elem->handler); }
/** * Parse params, coming directly from WDataHandler object. * * Nodes, other from "<handler>" and "<checker>" are ignored. * * @param SimpleXMLElement instance of WDataHandler node of * the document tree. * @return null */ function parseParams(SimpleXMLElement $elem) { parent::parseParams($elem); // looking for <handler> foreach ($elem->handler as $handler) { if (isset($handler['method'])) { $this->handler_methods[] = (string) $handler['method']; } else { throw new DataObjectException("Handler method was not found"); } $this->handler_params[] = new DataObjectParams($handler); } // looking for <checker> foreach ($elem->checker as $checker) { if (isset($checker['method'])) { $this->checker_methods[] = (string) $checker['method']; } else { throw new DataObjectException("Checker method was not found"); } $this->checker_params[] = new DataObjectParams($checker); } }