本文整理匯總了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();