public function addElementPath($path)
	{
		// Just force path to array.
		settype($path, 'array');

		// Loop through the path directories.
		foreach ($path as $dir)
		{
			// No surrounding spaces allowed!
			$dir = trim($dir);

			// Add trailing separators as needed.
			if (substr($dir, -1) != DIRECTORY_SEPARATOR)
			{
				// Directory
				$dir .= DIRECTORY_SEPARATOR;
			}

			// Add to the top of the search dirs.
			array_unshift($this->_elementPath, $dir);
		}

		return $this;
	}
public function addElementPath($path)
	{
		// Just force path to array.
		settype($path, 'array');

		// Loop through the path directories.
		foreach ($path as $dir)
		{
			// No surrounding spaces allowed!
			$dir = trim($dir);

			// Add trailing separators as needed.
			if (substr($dir, -1) != DIRECTORY_SEPARATOR)
			{
				// Directory
				$dir .= DIRECTORY_SEPARATOR;
			}

			// Add to the top of the search dirs.
			array_unshift($this->_elementPath, $dir);
		}

		return $this;
	}
public function addElementPath ( $ path ) { // Just force path to array. settype ( $ path , 'array' ) ; // Loop through the path directories. foreach ( $ path as $ dir ) { // No surrounding spaces allowed! $ dir = trim ( $ dir ) ; // Add trailing separators as needed. if ( substr ( $ dir , - 1 ) != DIRECTORY_SEPARATOR ) { // Directory $ dir .= DIRECTORY_SEPARATOR ; } // Add to the top of the search dirs. array_unshift ( $ this -> _elementPath , $ dir ) ; } return $ this ; }
Add a directory where Parameter should search for element types.

You may either pass a string or an array of directories.

Parameter will be searching for a element type in the same
order you added them. If the parameter type cannot be found in
the custom folders, it will look in
Parameter/types.

@param   mixed  $path  Directory (string) or directories (array) to search.
@return  object
Add a directory where Parameter should search for element types .