当前位置: 首页>>代码示例>>PHP>>正文


PHP Build::init方法代码示例

本文整理汇总了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();
 }
开发者ID:hschletz,项目名称:braintacle,代码行数:23,代码来源:Update.php

示例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();
 }
开发者ID:patrickpreuss,项目名称:Braintacle,代码行数:23,代码来源:Update.php

示例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();
开发者ID:hphelion,项目名称:tools,代码行数:30,代码来源:build.php


注:本文中的Build::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。