• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AbstractForm类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中AbstractForm的典型用法代码示例。如果您正苦于以下问题:PHP AbstractForm类的具体用法?PHP AbstractForm怎么用?PHP AbstractForm使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了AbstractForm类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     $this->source->update($this->name, $this->sourceDirectory, $this->buildDirectory, $this->scm, $this->url, $this->username, $this->password, null, $this->trustServerCert, $this->enableCheckout);
     // call saved event
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:ZerGabriel,项目名称:PackageBuilder,代码行数:12,代码来源:SourceEditForm.class.php


示例2: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // update
     $this->suspension->update($this->title, $this->points, $this->suspension->suspensions == 0 ? $this->suspensionType : $this->suspension->suspensionType, $this->suspension->suspensions == 0 ? $this->suspensionTypeObject->getData() : unserialize($this->suspension->suspensionData), $this->expiresHour * 3600 + $this->expiresDay * 86400 + $this->expiresWeek * 86400 * 7);
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:12,代码来源:SuspensionEditForm.class.php


示例3: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save rule
     $this->rule->update($this->title, $this->logicalOperator, $this->ruleConditions, $this->ruleAction, $this->ruleDestination, intval(!$this->enabled));
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:12,代码来源:PMRuleEditForm.class.php


示例4: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save server
     $this->entry->update($this->kind, $this->rulesetTable, $this->rulesetColumn, $this->rulesetColumnTime);
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:12,代码来源:ContestInteractionRulesetEditForm.class.php


示例5: save

 /**
  * @see Form::validate()
  */
 public function save()
 {
     AbstractForm::save();
     // update
     $this->rank->update($this->title, $this->image, $this->groupID, $this->neededPoints, $this->gender, $this->repeatImage);
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:12,代码来源:UserRankEditForm.class.php


示例6: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // update item
     $this->contestRatingoption->update($this->classID, $this->topic, $this->text, $this->languageID);
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:12,代码来源:ContestRatingoptionEditForm.class.php


示例7: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save server
     $this->updateServer->update($this->server, $this->htUsername, $this->htPassword);
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:12,代码来源:UpdateServerEditForm.class.php


示例8: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // update item
     $this->helpItem->update($this->topic, $this->text, $this->parentItem, $this->refererPattern, $this->showOrder, $this->isDisabled, $this->languageID);
     HelpItemEditor::clearCache();
     $this->saved();
     // show success message
     WCF::getTPL()->assign('success', true);
 }
开发者ID:joaocustodio,项目名称:EmuDevstore-1,代码行数:13,代码来源:HelpItemEditForm.class.php


示例9: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save sponsortalk
     $this->entry->update($this->message);
     $this->saved();
     // forward
     HeaderUtil::redirect('index.php?page=ContestSponsortalk&contestID=' . $this->entry->contestID . '&sponsortalkID=' . $this->entry->sponsortalkID . SID_ARG_2ND_NOT_ENCODED . '#sponsortalk' . $this->entry->sponsortalkID);
     exit;
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:13,代码来源:ContestSponsortalkEditForm.class.php


示例10: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save entry
     $this->entry->update($this->entry->contestID, $this->entry->userID, $this->entry->groupID, $this->state);
     $this->saved();
     // forward
     HeaderUtil::redirect('index.php?page=ContestSponsor&contestID=' . $this->entry->contestID . SID_ARG_2ND_NOT_ENCODED . '#entry' . $this->entry->sponsorID);
     exit;
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:13,代码来源:ContestSponsorEditForm.class.php


示例11: save

 /**
  * @see Form::save()
  */
 public function save()
 {
     AbstractForm::save();
     // save price
     $this->entry->update($this->subject, $this->text, $this->secretMessage, $this->state, $this->attachmentListEditor);
     $this->saved();
     // forward
     HeaderUtil::redirect('index.php?page=ContestPrice&contestID=' . $this->entry->contestID . '&priceID=' . $this->entry->priceID . SID_ARG_2ND_NOT_ENCODED . '#priceObj' . $this->entry->priceID);
     exit;
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:13,代码来源:ContestPriceEditForm.class.php


示例12: setFieldValues

 /**
  * Set the field values
  *
  * @param  array                  $values
  * @param  array                  $filters
  * @param  \Phire\Auth\Auth       $auth
  * @param  \Phire\Table\UserTypes $type
  * @param  \Phire\Model\User      $user
  * @return \Pop\Form\Form
  */
 public function setFieldValues(array $values = null, $filters = null, $auth = null, $type = null, $user = null)
 {
     parent::setFieldValues($values, $filters);
     if ($_POST) {
         // Authenticate and get the auth result
         $auth->authenticate($this->username, $this->password);
         $result = $auth->getAuthResult($type, $this->username);
         if (null !== $result) {
             $user->login($this->username, $type, false);
             if ($auth->getResult() == \Pop\Auth\Auth::PASSWORD_INCORRECT) {
                 $this->getElement('password')->addValidator(new Validator\NotEqual($this->password, $result));
             } else {
                 $this->getElement('username')->addValidator(new Validator\NotEqual($this->username, $result));
             }
         }
         // Check the user's allowed sites
         if (strtolower($type->type) != 'user') {
             $u = Table\Users::findBy(array('username' => $this->username));
             if (isset($u->id)) {
                 $siteIds = unserialize($u->site_ids);
                 $site = Table\Sites::findBy(array('document_root' => $_SERVER['DOCUMENT_ROOT']));
                 $siteId = isset($site->id) ? $site->id : '0';
                 if (!in_array($siteId, $siteIds)) {
                     $this->getElement('username')->addValidator(new Validator\NotEqual($this->username, $this->i18n->__('That user is not allowed on this site.')));
                 }
             }
         }
     }
     return $this;
 }
开发者ID:akinyeleolubodun,项目名称:PhireCMS2,代码行数:40,代码来源:Login.php


示例13: setData

 /** {@inheritdoc} */
 public function setData($data)
 {
     if (empty($data['OriginalId'])) {
         throw new \LogicException('OriginalId not set or empty');
     }
     return parent::setData($data);
 }
开发者ID:hschletz,项目名称:braintacle,代码行数:8,代码来源:Edit.php


示例14: init

 /** {@inheritdoc} */
 public function init()
 {
     parent::init();
     $displayBlacklistedSoftware = new \Zend\Form\Element\Checkbox('displayBlacklistedSoftware');
     $displayBlacklistedSoftware->setLabel('Display ignored software');
     $this->get('Preferences')->add($displayBlacklistedSoftware);
 }
开发者ID:hschletz,项目名称:braintacle,代码行数:8,代码来源:Display.php


示例15: setData

 /** {@inheritdoc} */
 public function setData($data)
 {
     $data['Preferences']['lockValidity'] = $this->localize($data['Preferences']['lockValidity'], 'integer');
     $data['Preferences']['sessionValidity'] = $this->localize($data['Preferences']['sessionValidity'], 'integer');
     $data['Preferences']['sessionCleanupInterval'] = $this->localize($data['Preferences']['sessionCleanupInterval'], 'integer');
     return parent::setData($data);
 }
开发者ID:patrickpreuss,项目名称:Braintacle,代码行数:8,代码来源:System.php


示例16: show

 /**
  * @see Page::show()
  */
 public function show()
 {
     // enable menu item
     if (!empty($this->activeMenuItem)) {
         WCFACP::getMenu()->setActiveMenuItem($this->activeMenuItem);
     }
     parent::show();
 }
开发者ID:CaribeSoy,项目名称:contest-wcf,代码行数:11,代码来源:ACPForm.class.php


示例17: init

 public function init()
 {
     $this->setName('usuario');
     $this->addElement('hidden', 'id', array('label' => 'id', 'value' => '', 'validators' => array(), 'required' => false));
     $this->addElement('text', 'email', array('label' => 'email', 'maxlength' => '100', 'class' => 'text text-email required', 'value' => '', 'validators' => array(array('StringLength', false, array(0, 200))), 'required' => true));
     $this->addElement('text', 'senha', array('label' => 'senha', 'maxlength' => '32', 'class' => 'text text-senha required', 'value' => '', 'validators' => array(array('StringLength', false, array(0, 32))), 'required' => true));
     parent::init();
 }
开发者ID:adrianosouzas,项目名称:calculo-tributos,代码行数:8,代码来源:UsuarioForm.php


示例18: setData

 /** {@inheritdoc} */
 public function setData($data)
 {
     $data['Preferences']['scannersPerSubnet'] = $this->localize($data['Preferences']['scannersPerSubnet'], 'integer');
     $data['Preferences']['scannerMinDays'] = $this->localize($data['Preferences']['scannerMinDays'], 'integer');
     $data['Preferences']['scannerMaxDays'] = $this->localize($data['Preferences']['scannerMaxDays'], 'integer');
     $data['Preferences']['scanArpDelay'] = $this->localize($data['Preferences']['scanArpDelay'], 'integer');
     return parent::setData($data);
 }
开发者ID:patrickpreuss,项目名称:Braintacle,代码行数:9,代码来源:NetworkScanning.php


示例19: __construct

 public function __construct()
 {
     parent::__construct();
     $this->add(array('name' => 'option_id', 'attributes' => array('type' => 'hidden')));
     $this->add(array('name' => 'choice_id', 'attributes' => array('type' => 'hidden')));
     $this->add(array('name' => 'product_id', 'attributes' => array('type' => 'hidden')));
     $this->add(array('name' => 'override_name', 'attributes' => array('type' => 'text'), 'options' => array('label' => 'Name')));
 }
开发者ID:pixlr,项目名称:SpeckCatalog,代码行数:8,代码来源:Choice.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $this->labelWidth = 3;
     $this->controlWidth = 9;
     $this->compact = true;
     $this->addText('name', 'Name')->addText('host', 'Hostname')->addText('port', 'Port')->addText('ssl', 'SSL')->addText('username', 'Username')->addPassword('password', 'Password')->addButton('submit', 'Submit', 'btn-primary');
 }
开发者ID:srayner,项目名称:cobalt,代码行数:8,代码来源:MailServerForm.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AbstractHandler类代码示例发布时间:2022-05-23
下一篇:
PHP AbstractEntity类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap