AddLast
@param PathStep $pathStep
@return void
972433
public function AddLast( $pathStep )
	{
		/**
		 * @var PathStep $last
		 */
		$last = $this;
		while ( ! is_null( $last->next ) )
			$last = $last->next;
		$last->next = $pathStep;
	}
332742
public function addExisting(Path $source)
    {
        $list = $source->listPaths();
        foreach ($list as $el) {
            $f = null;
            if ($this->project !== null) {
                $f = $this->project->resolveFile($el);
            } else {
                $f = new PhingFile($el);
            }

            if ($f->exists()) {
                $this->setDir($f);
            } else {
                $this->log(
                    "dropping " . $f->__toString() . " from path as it doesn't exist",
                    Project::MSG_VERBOSE
                );
            }
        }
    }
216699
public function AppendExternal ($path = '', $async = FALSE, $defer = FALSE, $doNotMinify = FALSE) {
		return $this->Append($path, $async, $defer, $doNotMinify, TRUE);
	}
45064
public function last($last) {
        $path = $this->path;

        array_pop($path);
        $path[] = $last;

        return new static($path);
    }
377259
public function add(Path $path) {
		$this->paths->set($path->getPath(), $path);
		return $this;
	}
418128
public function addThen(SequentialTask $t)
    {
        if ($this->thenTasks != null) {
            throw new BuildException("You must not nest more than one <then> into <if>");
        }
        $this->thenTasks = $t;
    }
136593
public function add($pattern, $paths = null, $method = null)
    {
        return $this->_addRoute($pattern, $paths, $method);
    }
155438
public function updateLast($uri, $title, $descr = false)
    {
        if (isset($this->_breadcrumbs[$this->count() - 1])) {
            $this->_breadcrumbs[$this->count() - 1] = [
                'uri'   => $uri,
                'title' => $title,
                'descr' => $descr,
            ];
        }
    }
480767
private function redirectToNextStep($currentStep, $parameters = array())
    {
        $steps = array_keys($this->steps);
        $nextStep = $steps[1 + array_search($currentStep, $steps)];
        Piwik::redirectToModule('Installation', $nextStep, $parameters);
    }
1186973
private function addPath(& $list, $path, $namespace)
    {
        if ($namespace !== null) {
            $paths = [$namespace => $path];
        } else {
            $paths = is_array($path) ? $path : ['' => $path];
        }

        foreach ($paths as $ns => $directories) {
            $this->addNamespacePaths($list, ltrim($ns, '0..9'), $directories);
        }
    }
702582
public function addPath($namespace, $path, $prepend = false) {
		if($namespace === null) {
			$namespace = '_';
		}
		if(!isset($this->paths[$namespace])) {
			$this->paths[$namespace] = [];
		}
		if($prepend) {
			array_unshift($this->paths[$namespace], $path);
		} else {
			array_push($this->paths[$namespace], $path);
		}
	}
1162709
public function addMigration(string $path, Migration $migrations): void{
        $name = basename($path);
        $this->migrations[$name] = $migrations;
    }
903567
public function setLast($last)
    {
        $this->_links[self::LAST][self::HREF] = $last;
        $this->removeEmptyLinks();

        return $this;
    }
131215
private function addAftersToDirectedGraph(StepRegistration $currentStep)
    {
        foreach ($currentStep->getAfters() as $after) {
            if (!isset($this->idToStep[$after->getDependsOnId()]) && $after->isEnforced()) {
                $allStepIds = implode(',', array_keys($this->idToStep));
                throw new PipelineBuildingException(
                    "Registration '{$after->getDependsOnId()}' specified in the insertafter of the '{$currentStep->getStepId()}' step does not exist. Current step ids: $allStepIds."
                );
            }

            if (isset($this->idToStep[$after->getDependsOnId()])) {
                $this->idDirectedGraph[$after->getDependsOnId()][] = $after->getDependantId();
            }
        }
    }
133425
public function addRootFile($path){
		$rootFile = $this->dom->rootfiles->addChild('rootfile');
		$rootFile['full-path'] = $path;
		$rootFile['media-type'] = 'application/oebps-package+xml';
	}
1328154
public static function prependIncludePath(...$path): void
    {
        $finalPaths = [];
        foreach ($path as $r) {

            if (is_array($r)) {
                foreach ($r as $t) {
                    $finalPaths[] = $t;
                }
            } else {
                $finalPaths[] = $r;
            }
        }

        foreach (explode(PATH_SEPARATOR, get_include_path()) as $r) {
            $finalPaths[] = $r;
        }

        set_include_path(implode(PATH_SEPARATOR, array_unique($finalPaths)));
    }
841744
public function addPrefix($prefix, $paths)
    {
        if (!$prefix) {
            foreach ((array) $paths as $path) {
                $this->fallbackDirs[] = $path;
            }

            return;
        }
        if (isset($this->prefixes[$prefix])) {
            $this->prefixes[$prefix] = array_merge(
                $this->prefixes[$prefix],
                (array) $paths
            );
        } else {
            $this->prefixes[$prefix] = (array) $paths;
        }
    }