classes/phing/types/PatternSet.php
public function append($other, $p)
    {
        if ($this->isReference()) {
            throw new BuildException("Cannot append to a reference");
        }

        $incl = $other->getIncludePatterns($p);
        if ($incl !== null) {
            foreach ($incl as $incl_name) {
                $o = $this->createInclude();
                $o->setName($incl_name);
            }
        }

        $excl = $other->getExcludePatterns($p);
        if ($excl !== null) {
            foreach ($excl as $excl_name) {
                $o = $this->createExclude();
                $o->setName($excl_name);
            }
        }
    }
public function append($other, $p)
    {
        if ($this->isReference()) {
            throw new BuildException("Cannot append to a reference");
        }

        $incl = $other->getIncludePatterns($p);
        if ($incl !== null) {
            foreach ($incl as $incl_name) {
                $o = $this->createInclude();
                $o->setName($incl_name);
            }
        }

        $excl = $other->getExcludePatterns($p);
        if ($excl !== null) {
            foreach ($excl as $excl_name) {
                $o = $this->createExclude();
                $o->setName($excl_name);
            }
        }
    }
public function append ( $ other , $ p ) { if ( $ this -> isReference ( ) ) { throw new BuildException ( "Cannot append to a reference" ) ; } $ incl = $ other -> getIncludePatterns ( $ p ) ; if ( $ incl !== null ) { foreach ( $ incl as $ incl_name ) { $ o = $ this -> createInclude ( ) ; $ o -> setName ( $ incl_name ) ; } } $ excl = $ other -> getExcludePatterns ( $ p ) ; if ( $ excl !== null ) { foreach ( $ excl as $ excl_name ) { $ o = $ this -> createExclude ( ) ; $ o -> setName ( $ excl_name ) ; } } }
Adds the patterns of the other instance to this set.

@param $other
@param Project $p

@throws BuildException
Adds the patterns of the other instance to this set .