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


PHP Field::__construct方法代码示例

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


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

示例1:

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Dynamic Text Group');
     $this->_required = true;
     $this->set('required', 'no');
 }
开发者ID:nickdunn,项目名称:dynamictextgroup,代码行数:7,代码来源:field.dynamictextgroup.php

示例2: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Publish Notes';
     $this->_required = FALSE;
     $this->set('show_column', 'no');
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:7,代码来源:field.publishnotes.php

示例3:

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Number';
     $this->_required = true;
     $this->set('required', 'yes');
 }
开发者ID:pointybeard,项目名称:numberfield,代码行数:7,代码来源:field.number.php

示例4: __construct

 /**
  *
  * Constructor for the oEmbed Field object
  */
 public function __construct()
 {
     // call the parent constructor
     parent::__construct();
     // set the name of the field
     $this->_name = __('Entry Relationship');
     // permits to make it required
     $this->_required = true;
     // permits the make it show in the table columns
     $this->_showcolumn = true;
     // permits association
     $this->_showassociation = true;
     // current recursive level
     $this->recursiveLevel = 1;
     // parent's maximum recursive level of output
     $this->recursiveDeepness = null;
     // set as not required by default
     $this->set('required', 'no');
     // show association by default
     $this->set('show_association', 'yes');
     // no max deepness
     $this->set('deepness', null);
     // no included elements
     $this->set('elements', null);
     // no limit
     $this->set('min_entries', null);
     $this->set('max_entries', null);
     // all permissions
     $this->set('allow_new', 'yes');
     $this->set('allow_edit', 'yes');
     $this->set('allow_link', 'yes');
     $this->set('allow_delete', 'no');
 }
开发者ID:hotdoy,项目名称:EDclock,代码行数:37,代码来源:field.entry_relationship.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_name = 'Collapse Fields';
     // Set defaults:
     // $this->set('show_column', 'no');
 }
开发者ID:andrewminton,项目名称:collapse_fields,代码行数:7,代码来源:field.collapse_fields.php

示例6:

 /**
  * Initialize as unrequired field
  */
 function __construct()
 {
     parent::__construct();
     $this->_name = __('Email Newsletter Manager');
     $this->_required = false;
     $this->set('location', 'sidebar');
 }
开发者ID:jonmifsud,项目名称:email_newsletter_manager,代码行数:10,代码来源:field.email_newsletter_manager.php

示例7:

 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Select Box');
     // Set default
     $this->set('show_column', 'no');
 }
开发者ID:njmcgee,项目名称:taxcheck,代码行数:7,代码来源:field.select.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_name = __('Unique Link');
     $this->_required = false;
     $this->set('required', 'no');
 }
开发者ID:andrewminton,项目名称:field_unique_link,代码行数:7,代码来源:field.unique_link.php

示例9: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'YouTube Video';
     $this->_required = false;
     $this->set('required', 'no');
 }
开发者ID:TwistedInteractive,项目名称:youtube_videos,代码行数:7,代码来源:field.youtube_video.php

示例10: __construct

 public function __construct($name, $label = null)
 {
     parent::__construct($name, $label);
     $this->type = "datetime";
     $this->defaultValue = date("Y-m-d H:i:s");
     $this->validationLength = 19;
 }
开发者ID:jura-php,项目名称:jura,代码行数:7,代码来源:DateTimeField.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_name = __('Link');
     // Set default
     $this->{'limit'} = 20;
 }
开发者ID:brendo,项目名称:symphony-3,代码行数:7,代码来源:field.link.php

示例12: __construct

 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Date');
     $this->key = 1;
     $this->set('location', 'sidebar');
 }
开发者ID:scottkf,项目名称:keepflippin--on-symphony,代码行数:7,代码来源:field.date.php

示例13: __construct

 public function __construct($fieldDef, $form)
 {
     if (isset($fieldDef['multiple']) && $fieldDef['multiple']) {
         $this->multi = TRUE;
     }
     parent::__construct($fieldDef, $form);
 }
开发者ID:seanmorris,项目名称:form,代码行数:7,代码来源:SelectField.php

示例14: __construct

 public function __construct($label = "", $name = "", $description = "", $value = "")
 {
     Field::__construct($name, $value);
     Element::__construct($label, $description);
     $this->type = "TEXT";
     $this->addAttribute("type", "text");
 }
开发者ID:ekowabaka,项目名称:cfx,代码行数:7,代码来源:TextField.php

示例15: __construct

 public function __construct($key)
 {
     parent::__construct($key);
     // initialize default values
     $this->format = null;
     $this->href = null;
 }
开发者ID:benjaminhough,项目名称:blueprints-web-kit,代码行数:7,代码来源:ListField.php


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