本文整理汇总了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');
}
示例2: __construct
public function __construct(&$parent)
{
parent::__construct($parent);
$this->_name = 'Publish Notes';
$this->_required = FALSE;
$this->set('show_column', 'no');
}
示例3:
function __construct(&$parent)
{
parent::__construct($parent);
$this->_name = 'Number';
$this->_required = true;
$this->set('required', 'yes');
}
示例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');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->_name = 'Collapse Fields';
// Set defaults:
// $this->set('show_column', 'no');
}
示例6:
/**
* Initialize as unrequired field
*/
function __construct()
{
parent::__construct();
$this->_name = __('Email Newsletter Manager');
$this->_required = false;
$this->set('location', 'sidebar');
}
示例7:
function __construct(&$parent)
{
parent::__construct($parent);
$this->_name = __('Select Box');
// Set default
$this->set('show_column', 'no');
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->_name = __('Unique Link');
$this->_required = false;
$this->set('required', 'no');
}
示例9: __construct
public function __construct(&$parent)
{
parent::__construct($parent);
$this->_name = 'YouTube Video';
$this->_required = false;
$this->set('required', 'no');
}
示例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;
}
示例11: __construct
public function __construct()
{
parent::__construct();
$this->_name = __('Link');
// Set default
$this->{'limit'} = 20;
}
示例12: __construct
public function __construct(&$parent)
{
parent::__construct($parent);
$this->_name = __('Date');
$this->key = 1;
$this->set('location', 'sidebar');
}
示例13: __construct
public function __construct($fieldDef, $form)
{
if (isset($fieldDef['multiple']) && $fieldDef['multiple']) {
$this->multi = TRUE;
}
parent::__construct($fieldDef, $form);
}
示例14: __construct
public function __construct($label = "", $name = "", $description = "", $value = "")
{
Field::__construct($name, $value);
Element::__construct($label, $description);
$this->type = "TEXT";
$this->addAttribute("type", "text");
}
示例15: __construct
public function __construct($key)
{
parent::__construct($key);
// initialize default values
$this->format = null;
$this->href = null;
}