classes/phing/types/PearPackageFileSet.php
public function setPackage($package)
    {
        $parts = explode('/', $package);
        if (count($parts) > 2) {
            throw new BuildException('Invalid package name: ' . $package);
        }

        if (count($parts) == 1) {
            $this->channel = 'pear.php.net';
            $this->package = $parts[0];
        } else {
            $this->channel = $parts[0];
            $this->package = $parts[1];
        }
    }
public function setPackage($package)
    {
        $parts = explode('/', $package);
        if (count($parts) > 2) {
            throw new BuildException('Invalid package name: ' . $package);
        }

        if (count($parts) == 1) {
            $this->channel = 'pear.php.net';
            $this->package = $parts[0];
        } else {
            $this->channel = $parts[0];
            $this->package = $parts[1];
        }
    }
public function setPackage ( $ package ) { $ parts = explode ( '/' , $ package ) ; if ( count ( $ parts ) > 2 ) { throw new BuildException ( 'Invalid package name: ' . $ package ) ; } if ( count ( $ parts ) == 1 ) { $ this -> channel = 'pear.php.net' ; $ this -> package = $ parts [ 0 ] ; } else { $ this -> channel = $ parts [ 0 ] ; $ this -> package = $ parts [ 1 ] ; } }
Sets the package name.
If no channel is given, "pear.php.net" is used.

@param string $package Single package name, or "channel/name" combination

@throws BuildException
@return void
Sets the package name . If no channel is given pear . php . net is used .