本文整理汇总了PHP中Build::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Build::init方法的具体用法?PHP Build::init怎么用?PHP Build::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Build
的用法示例。
在下文中一共展示了Build::init方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/** {@inheritdoc} */
public function init()
{
$fieldset = new \Zend\Form\Fieldset('Deploy');
$fieldset->setLabel('Deploy to clients which have existing package assigned');
$deployPending = new \Zend\Form\Element\Checkbox('Pending');
$deployPending->setLabel('Pending');
$fieldset->add($deployPending);
$deployRunning = new \Zend\Form\Element\Checkbox('Running');
$deployRunning->setLabel('Running');
$fieldset->add($deployRunning);
$deploySuccess = new \Zend\Form\Element\Checkbox('Success');
$deploySuccess->setLabel('Success');
$fieldset->add($deploySuccess);
$deployError = new \Zend\Form\Element\Checkbox('Error');
$deployError->setLabel('Error');
$fieldset->add($deployError);
$deployGroups = new \Zend\Form\Element\Checkbox('Groups');
$deployGroups->setLabel('Groups');
$fieldset->add($deployGroups);
$this->add($fieldset);
parent::init();
}
示例2: init
/** {@inheritdoc} */
public function init()
{
$fieldset = new \Zend\Form\Fieldset('Deploy');
$fieldset->setLabel('Deploy to computers which have existing package assigned');
$deployNonnotified = new \Zend\Form\Element\Checkbox('Nonnotified');
$deployNonnotified->setLabel('Not notified');
$fieldset->add($deployNonnotified);
$deploySuccess = new \Zend\Form\Element\Checkbox('Success');
$deploySuccess->setLabel('Success');
$fieldset->add($deploySuccess);
$deployNotified = new \Zend\Form\Element\Checkbox('Notified');
$deployNotified->setLabel('Running');
$fieldset->add($deployNotified);
$deployError = new \Zend\Form\Element\Checkbox('Error');
$deployError->setLabel('Error');
$fieldset->add($deployError);
$deployGroups = new \Zend\Form\Element\Checkbox('Groups');
$deployGroups->setLabel('Groups');
$fieldset->add($deployGroups);
$this->add($fieldset);
parent::init();
}
示例3: __construct
// extra set of features for debugging builds.
class DebugBuild extends Build
{
public $debug = true;
public $debugLog;
// Create the constructor to be able to build new build objects.
public function __construct($debugLog)
{
$this->debugLog = $debugLog;
}
public function getDebugLog()
{
return $this->{$debugLog};
}
public function setDebugLog()
{
$this->debugLog = $debugLog;
}
}
/////////////////////////////////////////////////////////
// Beginning of build
/////////////////////////////////////////////////////////
//
// Programmatically, the build should be able to figure out what the
// build number is, get the user who started the build from git or Jenkins,
// have the license file statically set (perhaps), but the project to build
// would likely need to be passed in. Ideally, this information would be
// in a build database.
$build = new Build('1', 'https://github.com/hphelion/hos.docs', 'hos-40', 'check-in-person', 'myLicense');
$build->init();