當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。