function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Dynamic Text Group');
     $this->_required = true;
     $this->set('required', 'no');
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Publish Notes';
     $this->_required = FALSE;
     $this->set('show_column', 'no');
 }
Example #3
0
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Number';
     $this->_required = true;
     $this->set('required', 'yes');
 }
 /**
  *
  * 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');
 }
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'Collapse Fields';
     // Set defaults:
     // $this->set('show_column', 'no');
 }
 /**
  * Initialize as unrequired field
  */
 function __construct()
 {
     parent::__construct();
     $this->_name = __('Email Newsletter Manager');
     $this->_required = false;
     $this->set('location', 'sidebar');
 }
Example #7
0
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Select Box');
     // Set default
     $this->set('show_column', 'no');
 }
 public function __construct()
 {
     parent::__construct();
     $this->_name = __('Unique Link');
     $this->_required = false;
     $this->set('required', 'no');
 }
Example #9
0
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Status');
     // Set default
     $this->set('show_column', 'yes');
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'YouTube Video';
     $this->_required = false;
     $this->set('required', 'no');
 }
Example #11
0
 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;
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     $this->_name = __('Link');
     // Set default
     $this->{'limit'} = 20;
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Date');
     $this->key = 1;
     $this->set('location', 'sidebar');
 }
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Member: Username & Password';
     $this->_required = true;
     $this->set('required', 'yes');
 }
Example #15
0
 public function __construct($fieldDef, $form)
 {
     if (isset($fieldDef['multiple']) && $fieldDef['multiple']) {
         $this->multi = TRUE;
     }
     parent::__construct($fieldDef, $form);
 }
Example #16
0
 public function __construct($label = "", $name = "", $description = "", $value = "")
 {
     Field::__construct($name, $value);
     Element::__construct($label, $description);
     $this->type = "TEXT";
     $this->addAttribute("type", "text");
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Vimeo Video Field';
     $this->_required = false;
     $this->set('required', 'no');
 }
 public function __construct($key)
 {
     parent::__construct($key);
     // initialize default values
     $this->format = null;
     $this->href = null;
 }
Example #19
0
 /**
  * Constructor for the checkbox.
  *
  * @param $label The label of the checkbox.
  * @param $name The name of the checkbox used for the name='' attribute of the HTML output
  * @param $description A description of the field.
  * @param $value A value to assign to this checkbox.
  */
 public function __construct($label = "", $name = "", $description = "", $value = "", $uncheckedValue = "0")
 {
     Element::__construct($label, $description);
     parent::__construct($name);
     $this->setCheckedValue($value);
     $this->setUncheckedValue($uncheckedValue);
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Address');
     $this->_required = TRUE;
     $this->set('required', 'no');
 }
 /**
  * Class constructor
  */
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Search Index';
     $this->_required = FALSE;
     $this->set('hide', 'no');
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Expression';
     $this->_required = true;
     $this->_driver = $this->_engine->ExtensionManager->create('expressionfield');
 }
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Unique Text Input';
     $this->_required = true;
     $this->set('required', 'yes');
 }
Example #24
0
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('File Upload');
     $this->_required = true;
     $this->set('required', 'yes');
 }
Example #25
0
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = __('Text Input');
     $this->_required = true;
     $this->set('required', 'no');
 }
Example #26
0
 function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Entry Order';
     $this->_required = false;
     $this->set('hide', 'no');
 }
Example #27
0
 public function __construct()
 {
     parent::__construct();
     $this->_name = __('Author');
     $this->_required = true;
     $this->set('author_types', array());
 }
 function __construct()
 {
     parent::__construct();
     $this->_name = 'Increment Number';
     $this->_required = TRUE;
     $this->set('required', 'no');
 }
 public function __construct($name = 'Email', array $config = [])
 {
     parent::__construct($name, $config);
     $this->validators[] = function ($value) {
         return filter_var($value, FILTER_VALIDATE_EMAIL) ? true : "Invalid email address: {$value}";
     };
 }
 public function __construct(&$parent)
 {
     parent::__construct($parent);
     $this->_name = 'Member Email';
     // Set defaults:
     $this->set('show_column', 'yes');
 }