tasks/system/IncludePathTask.php
\IncludePathTask
Package: phing\tasks\system
Details
Adds a normalized path to the PHP include_path.
This provides a way to alter the include_path without editing any global php.ini settings or PHP_CLASSPATH environment variable.
- Parent(s)
- \Task < \ProjectComponent
- Author
- Hans Lellelid
- Version
- $Revision: 526 $
Properties

string
$classname= ''
Classname of task to register.
This can be a dot-path -- relative to a location on PHP include_path. E.g. path.to.MyClass -> path/to/MyClass.php
- Type
- string

\Path
$classpath= ''
Path to add to PHP include_path to aid in finding specified class.
Details
- Type
- \Path
Methods

setClasspath(
\Path $classpath
)
:
voidSet the classpath to be used when searching for component being defined
Parameters
| Name | Type | Description |
|---|---|---|
| $classpath | \Path | An Path object containing the classpath. |

setClasspathRef(
$r
)
:
voidReference to a classpath to use when loading the files.
Parameters
| Name | Type | Description |
|---|---|---|
| $r |