Bearsampp 2026.9.23
Loading...
Searching...
No Matches
PEAR_Command_Build Class Reference
Inheritance diagram for PEAR_Command_Build:
Collaboration diagram for PEAR_Command_Build:

Public Member Functions

 __construct (&$ui, &$config)
 buildCallback ($what, $data)
 doBuild ($command, $options, $params)
Public Member Functions inherited from PEAR_Command_Common
 getCommands ()
 getGetoptArgs ($command, &$short_args, &$long_args)
 getHelp ($command)
 getHelpArgs ($command)
 getOptions ($command)
 getShortcuts ()
 run ($command, $options, $params)
Public Member Functions inherited from PEAR
 __call ($method, $arguments)
 __construct ($error_class=null)
 _checkDelExpect ($error_code)
 _PEAR ()
 delExpect ($error_code)
 expectError ($code=' *')
 PEAR ($error_class=null)
 popExpect ()

Data Fields

 $commands
Data Fields inherited from PEAR_Command_Common
 $_deps_rel_trans
 $_deps_type_trans
 $_registry
 $config
 $ui
Data Fields inherited from PEAR
 $_debug = false
 $_default_error_handler = ''
 $_default_error_mode = null
 $_default_error_options = null
 $_error_class = 'PEAR_Error'
 $_expected_errors = array()

Additional Inherited Members

Static Public Member Functions inherited from PEAR
static __callStatic ($method, $arguments)
static getSourceDateEpoch ()
static & getStaticProperty ($class, $var)
static isError ($data, $code=null)
static loadExtension ($ext)
static registerShutdownFunc ($func, $args=array())
static staticPopErrorHandling ()
static staticPushErrorHandling ($mode, $options=null)
Static Protected Member Functions inherited from PEAR
static _popErrorHandling ($object)
static _pushErrorHandling ($object, $mode, $options=null)
static _raiseError ($object, $message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
static _setErrorHandling ( $object, $mode=null, $options=null)
static _throwError ($object, $message=null, $code=null, $userinfo=null)
Static Protected Attributes inherited from PEAR
static $bivalentMethods

Detailed Description

Definition at line 37 of file Build.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( & $ui,
& $config )

PEAR_Command_Build constructor.

@access public

Reimplemented from PEAR_Command_Common.

Definition at line 61 of file Build.php.

62 {
63 parent::__construct($ui, $config);
64 }

References PEAR_Command_Common\$config, and PEAR_Command_Common\$ui.

Member Function Documentation

◆ buildCallback()

buildCallback ( $what,
$data )

Definition at line 84 of file Build.php.

85 {
86 if (($what == 'cmdoutput' && $this->debug > 1) ||
87 ($what == 'output' && $this->debug > 0)) {
88 $this->ui->outputData(rtrim($data), 'build');
89 }
90 }

◆ doBuild()

doBuild ( $command,
$options,
$params )

Definition at line 66 of file Build.php.

67 {
68 require_once 'PEAR/Builder.php';
69 if (sizeof($params) < 1) {
70 $params[0] = 'package.xml';
71 }
72
73 $configureoptions = empty($options['configureoptions']) ? '' : $options['configureoptions'];
74 $builder = new PEAR_Builder($configureoptions, $this->ui);
75 $this->debug = $this->config->get('verbose');
76 $err = $builder->build($params[0], array(&$this, 'buildCallback'));
77 if (PEAR::isError($err)) {
78 return $err;
79 }
80
81 return true;
82 }
$options
Definition pearcmd.php:145

References $command, $options, and PEAR\isError().

Here is the call graph for this function:

Field Documentation

◆ $commands

$commands
Initial value:
= array(
'build' => array(
'summary' => 'Build an Extension From C Source',
'function' => 'doBuild',
'shortcut' => 'b',
'options' => array(
'configureoptions' => array(
'shortopt' => 'D',
'arg' => 'OPTION1=VALUE[ OPTION2=VALUE]',
'doc' => 'space-delimited list of configure options',
),
),
'doc' => '[package.xml]
Builds one or more extensions contained in a package.'
),
)

Definition at line 39 of file Build.php.


The documentation for this class was generated from the following file:
  • E:/Bearsampp-development/sandbox/core/libs/php/pear/pear/PEAR/Command/Build.php