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


PHP HiddenField::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($name, $title = "", $value = "", $width = 1140, $height = 600, $baseImages = null)
 {
     $this->width = $width;
     $this->height = $height;
     $this->baseImages = $baseImages;
     parent::__construct($name, $title, $value);
 }
开发者ID:helpfulrobot,项目名称:nimeso-silverstripe-drawpolygonfield,代码行数:7,代码来源:DrawPolygonField.php

示例2: __construct

 /**
  *
  * @param GridField $name
  * @param string $data - json encoded string
  */
 public function __construct($grid, $value = null)
 {
     $this->grid = $grid;
     if ($value) {
         $this->setValue($value);
     }
     parent::__construct($grid->getName() . '[GridState]');
 }
开发者ID:prostart,项目名称:cobblestonepath,代码行数:13,代码来源:GridState.php

示例3: __construct

 public function __construct($name, $title = null, $value = "", $form = null)
 {
     // naming with underscores to prevent values from actually being saved somewhere
     $this->fieldLatitude = new HiddenField("{$name}[Latitude]", null);
     $this->fieldLongditude = new HiddenField("{$name}[Longditude]", null);
     $this->fieldPositionSet = new HiddenField("{$name}[PositionSet]", null);
     $this->fieldPositionSet->setValue(0);
     parent::__construct($name, $title, null, $form);
     $this->setValue($value);
 }
开发者ID:helpfulrobot,项目名称:andrelohmann-silverstripe-geoform,代码行数:10,代码来源:HiddenLocationField.php

示例4: __construct

 public function __construct($name, $title = null, $value = null, $mapping = [], $identifier = null)
 {
     if ($value && $value instanceof \DataObjectInterface) {
         $this->recordClass = get_class($value);
     } elseif (\ClassInfo::exists($name) && singleton($name) instanceof \DataObjectInterface) {
         $this->recordClass = $name;
     }
     $this->mapping = $mapping;
     $this->identifier = $identifier;
     $this->doNotMapTo();
     parent::__construct($name, $title);
 }
开发者ID:helpfulrobot,项目名称:milkyway-multimedia-ss-mwm-formfields,代码行数:12,代码来源:RecordMapField.php

示例5:

 /**
  * Returns an input field, class="text" and type="text" with an optional maxlength
  */
 function __construct($name, $title = null, $flickrPhoto = '', $maxLength = null, $form = null)
 {
     $this->maxLength = $maxLength;
     parent::setTemplate('FLickrPhotoSelectionField');
     $value = '';
     if ($flickrPhoto) {
         $value = $flickrPhoto->ID;
         $this->flickrTitle = $flickrPhoto->Title;
         $this->flickrID = $flickrPhoto->FlickrID;
         $this->mediumURL = $flickrPhoto->MediumURL;
     }
     $this->addExtraClass('flickrPhotoSelectionField');
     parent::__construct($name, $title, $value, $form);
 }
开发者ID:gordonbanderson,项目名称:flickr-editor,代码行数:17,代码来源:FlickrPhotoSelectionField.php

示例6:

 function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
 }
开发者ID:helpfulrobot,项目名称:mrmorphic-neolayout,代码行数:4,代码来源:NLCMSLayoutEditorField.php

示例7: __construct

 public function __construct($name, $title, $className = "SiteTree", $label = "Title", $val = null, $form = null)
 {
     parent::__construct($name, $title, $val, $form);
     $this->labelField = $label;
     $this->sourceClass = $className;
 }
开发者ID:nicmart,项目名称:comperio-site,代码行数:6,代码来源:LiveDropdownField.php

示例8:

 /**
  * Creates a new optionset field for order modifers with the naming convention
  * Modifiers[ClassName] where ClassName is name of modifier class.
  * 
  * @param name The field name, needs to be the class name of the class that is going to be the modifier
  * @param title The field title
  * @param source An map of the dropdown items
  * @param value The current value
  * @param form The parent form
  */
 function __construct($modifier, $title = null, $value = "", $maxLength = null, $form = null)
 {
     $name = "Modifiers[{$modifier->ClassName}]";
     $this->modifier = $modifier;
     parent::__construct($name, $title, $value, $maxLength, $form);
 }
开发者ID:helpfulrobot,项目名称:swipestripe-swipestripe,代码行数:16,代码来源:ModifierHiddenField.php

示例9:

 /**
  * Creates a new optionset field for order modifers with the naming convention
  * Modifiers[ClassName] where ClassName is name of modifier class.
  * 
  * @param name The field name, needs to be the class name of the class that is going to be the modifier
  * @param title The field title
  * @param source An map of the dropdown items
  * @param value The current value
  * @param form The parent form
  */
 function __construct($modifier, $title = null, $value = "", $maxLength = null, $form = null)
 {
     $name = "Modifiers[" . get_class($modifier) . "]";
     $this->modifier = $modifier;
     parent::__construct($name, $title, $value, $maxLength, $form);
 }
开发者ID:vinstah,项目名称:body,代码行数:16,代码来源:ModificationField.php


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