public function setPath($type, $path)
	{
		if (!array_key_exists($type, $this->paths))
		{
			throw new \Exception(\App::get('language')->txt('Unknown asset path type of %s given.', $type));
		}

		$path = trim((string) $path);

		// Add separators as needed
		$path = DS . trim($path, DS);

		// Add to list of paths
		$this->paths[$type] = $path;

		return $this;
	}
public function setPath($type, $path)
	{
		if (!array_key_exists($type, $this->paths))
		{
			throw new \Exception(\App::get('language')->txt('Unknown asset path type of %s given.', $type));
		}

		$path = trim((string) $path);

		// Add separators as needed
		$path = DS . trim($path, DS);

		// Add to list of paths
		$this->paths[$type] = $path;

		return $this;
	}
public function setPath ( $ type , $ path ) { if ( ! array_key_exists ( $ type , $ this -> paths ) ) { throw new \ Exception ( \ App :: get ( 'language' ) -> txt ( 'Unknown asset path type of %s given.' , $ type ) ) ; } $ path = trim ( ( string ) $ path ) ; // Add separators as needed $ path = DS . trim ( $ path , DS ) ; // Add to list of paths $ this -> paths [ $ type ] = $ path ; return $ this ; }
Adds to the list of paths

@param   string  $type  The type of path to add.
@param   mixed   $path  The directory or stream, or an array of either, to search.
@return  object
Adds to the list of paths