Components_Module_Installer::getOptionGroupOptions PHP Method

getOptionGroupOptions() public method

Return the options for this module.
public getOptionGroupOptions ( ) : array
return array The group options.
    public function getOptionGroupOptions()
    {
        return array(new Horde_Argv_Option('-i', '--install', array('action' => 'store_true', 'help' => 'Install the selected element into the PEAR environment indicated with the --destination option.')), new Horde_Argv_Option('--nodeps', array('action' => 'store_true', 'help' => 'Ignore package dependencies and just install the specified package.')), new Horde_Argv_Option('-S', '--sourcepath', array('action' => 'store', 'help' => 'Location of downloaded PEAR packages. Specifying this path allows you to avoid accessing the network for installing new packages.')), new Horde_Argv_Option('-X', '--channelxmlpath', array('action' => 'store', 'help' => 'Location of static channel XML descriptions. These files need to be named CHANNEL.channel.xml (e.g. pear.php.net.channel.xml). Specifying this path allows you to avoid accessing the network for installing new channels. If this is not specified but SOURCEPATH is given then SOURCEPATH will be checked for such channel XML files.')), new Horde_Argv_Option('--build-distribution', array('action' => 'store_true', 'help' => 'Download all elements required for installation to SOURCEPATH and CHANNELXMLPATH. If those paths have been left undefined they will be created automatically at DESTINATION/distribution if you activate this flag.')), new Horde_Argv_Option('--instructions', array('action' => 'store', 'help' => 'Points to a file that contains per-package installation instructions. This is a plain text file that holds a package identifier per line. You can either specify packages by name (e.g. PEAR), by a combination of channel and name (e.g. pear.php.net/PEAR), a channel name (e.g. channel:pear.php.net), or all packages by the special keyword ALL. The package identifier is followed by a set of options that can be any keyword of the following: include,exclude,symlink,git,snapshot,stable,beta,alpha,devel,force,nodeps.

      These have the following meaning:

       - include:  Include optional package(s) into the installation.
       - exclude:  Exclude optional package(s) from installation.
       - git:      Prefer installing from a source component.
       - snapshot: Prefer installing from a snapshot in the SOURCEPATH.
       - stable:   Prefer a remote package of stability "stable".
       - beta:     Prefer a remote package of stability "beta".
       - alpha:    Prefer a remote package of stability "alpha".
       - devel:    Prefer a remote package of stability "devel".
       - symlink:  Symlink a source component rather than copying it.
       - force:    Force the PEAR installer to install the package.
       - nodeps:   Instruct the PEAR installer to ignore dependencies.

      The INSTRUCTIONS file could look like this (ensure the identifiers move from less specific to more specific as the latter options will overwrite previous instructions in case both identifier match a compnent):

       ALL: symlink
       Horde_Test: exclude
')), new Horde_Argv_Option('-H', '--horde-dir', array('action' => 'store', 'help' => 'The location of the horde installation directory. The default will be the DESTINATION/horde directory')));
    }