/**
  * Checks for nested tags within the current one. Creates and calls
  * handlers respectively.
  *
  * @param  string  the tag that comes in
  * @param  array   attributes the tag carries
  */
 public function startElement($name, $attrs)
 {
     $eh = new ElementHandler($this->parser, $this, $this->configurator, $this->child, $this->childWrapper, $this->target);
     $eh->init($name, $attrs);
 }
Beispiel #2
0
 /**
  * Checks for nested tags within the current one. Creates and calls
  * handlers respectively.
  *
  * @param  string  the tag that comes in
  * @param  array   attributes the tag carries
  */
 public function startElement($name, $attrs)
 {
     // shorthands
     $project = $this->configurator->project;
     $types = $project->getDataTypeDefinitions();
     $tmp = new ElementHandler($this->parser, $this, $this->configurator, null, null, $this->target);
     $tmp->init($name, $attrs);
 }
 /**
  * Handles start elements within the <project> tag by creating and
  * calling the required handlers for the detected element.
  *
  * @param  string  the tag that comes in
  * @param  array   attributes the tag carries
  * @throws ExpatParseException if a unxepected element occurs
  */
 public function startElement($name, $attrs)
 {
     $project = $this->configurator->project;
     $types = $project->getDataTypeDefinitions();
     if ($name == "target") {
         $tf = new TargetHandler($this->parser, $this, $this->configurator, $this->context);
         $tf->init($name, $attrs);
     } else {
         $tf = new ElementHandler($this->parser, $this, $this->configurator, null, null, $this->context->getImplicitTarget());
         $tf->init($name, $attrs);
     }
 }