/** * Import a dot-path notation class path. * @param string $dotPath * @param mixed $classpath String or object supporting __toString() * @return string The unqualified classname (which can be instantiated). * @throws BuildException - if cannot find the specified file */ public static function import($dotPath, $classpath = null) { return PhingAutoLoader::addLocation($dotPath, (string) $classpath); }
/** * Adds a data type definition. * @param string $name Name of tag. * @param string $class The class path to use. * @param string $classpath The classpat to use. */ public function addDataTypeDefinition($typeName, $typeClass, $classpath = null) { if (!isset($this->typedefs[$typeName])) { $className = PhingAutoLoader::addLocation($typeClass, (string) $classpath); $this->typedefs[$typeName] = $className; $this->project->log(" +User datatype: {$typeName} ({$typeClass})", Project::MSG_DEBUG); } else { $this->project->log("Type {$typeName} ({$typeClass}) already registerd, skipping", Project::MSG_VERBOSE); } }