/** * Add a typens that is undefined in internal typens * * @param string $type */ private function addtypens($type) { static $t = 0; if (isset($this->typensURLS[$type])) { $this->typens["typens" . $t] = $this->typensURLS[$type]; $this->typeTypens[$type] = "typens" . $t; $t++; } elseif (array_key_exists($type, $this->classes)) { $this->typensDefined[$type] = $type; } else { $foundClasses = $this->PHPParser->getFoundClasses(); if (in_array($type, $foundClasses)) { trigger_error("There are no methods defined for <b>" . $type . "</b>", E_USER_ERROR); } else { trigger_error("URL for type <b>" . $type . "</b> or method for class <b>" . $type . "</b> not defined", E_USER_ERROR); } } }