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


PHP Form::configure方法代码示例

本文整理汇总了PHP中Symfony\Component\Form\Form::configure方法的典型用法代码示例。如果您正苦于以下问题:PHP Form::configure方法的具体用法?PHP Form::configure怎么用?PHP Form::configure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Symfony\Component\Form\Form的用法示例。


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

示例1: configure

 protected function configure()
 {
     parent::configure();
     $this->add(new HiddenField('id'));
     $this->add(new TextField('name'));
     $this->add(new CheckboxField('isActive'));
 }
开发者ID:faridos,项目名称:ServerGroveLiveChat,代码行数:7,代码来源:OperatorDepartmentForm.php

示例2: configure

 protected function configure()
 {
     parent::configure();
     $this->add(new Form\TextField('title'));
     $this->add(new Form\TextField('author'));
     $this->add(new Form\TextField('copyright'));
     $this->add(new Form\ChoiceField('defaultKey', array('choices' => array('C' => 'C', 'C#' => 'C#', 'Db' => 'Db', 'D' => 'D', 'D#' => 'D#', 'Eb' => 'Eb', 'E' => 'E', 'F' => 'F', 'F#' => 'F#', 'Gb' => 'Gb', 'G' => 'G', 'G#' => 'G#', 'Ab' => 'Ab', 'A' => 'A', 'A#' => 'A#', 'Bb' => 'Bb', 'B' => 'B'))));
     $this->add(new Form\TextareaField('chordSheet', array('required' => false)));
 }
开发者ID:rogchap,项目名称:Diakonia,代码行数:9,代码来源:SongForm.php

示例3: configure

 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     $this->addRequiredOption('secret');
     $this->addOption('tmp_dir', sys_get_temp_dir());
     parent::configure();
     $this->add(new Field('file'));
     $this->add(new HiddenField('token'));
     $this->add(new HiddenField('original_name'));
 }
开发者ID:faridos,项目名称:ServerGroveLiveChat,代码行数:12,代码来源:FileField.php

示例4: configure

 protected function configure()
 {
     parent::configure();
     $this->add(new HiddenField('id'));
     $this->add(new TextField('name'));
     $this->add(new RepeatedField(new TextField('email')));
     $this->add(new RepeatedField(new PasswordField('passwd')));
     $this->add(new CheckboxField('isActive'));
 }
开发者ID:faridos,项目名称:ServerGroveLiveChat,代码行数:9,代码来源:OperatorForm.php

示例5: configure

 /**
  * Available options:
  *
  *  * modifiable:   If true, elements in the collection can be added
  *                  and removed by the presence of absence of the
  *                  corresponding field groups. Field groups could be
  *                  added or removed via Javascript and reflected in
  *                  the underlying collection. Default: false.
  */
 protected function configure()
 {
     $this->addOption('modifiable', false);
     if ($this->getOption('modifiable')) {
         $field = $this->newField('$$key$$', null);
         // TESTME
         $field->setRequired(false);
         $this->add($field);
     }
     parent::configure();
 }
开发者ID:nickaggarwal,项目名称:sample-symfony2,代码行数:20,代码来源:CollectionField.php

示例6: configure

 protected function configure()
 {
     $this->testCase->assertEquals($this->object, $this->getData());
     parent::configure();
 }
开发者ID:rsky,项目名称:symfony,代码行数:5,代码来源:FormTest.php


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