Beispiel #1
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Select Dropdown';
     $this->fieldtype_description = 'Select one of many options in a dropdown list.';
     $this->validation_error = '';
     $this->db_column = 'VARCHAR(150)';
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Text';
     $this->fieldtype_description = 'A single line of text.';
     $this->validation_error = '';
     $this->db_column = 'VARCHAR(250)';
 }
Beispiel #3
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Textarea';
     $this->fieldtype_description = 'Multiple lines of text.';
     $this->validation_error = '';
     $this->db_column = 'TEXT';
 }
Beispiel #4
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Date & Time';
     $this->fieldtype_description = 'Date with time.';
     $this->validation_error = '';
     $this->db_column = 'DATETIME';
 }
Beispiel #5
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Multicheckbox Options';
     $this->fieldtype_description = 'Check one or many options in a list of checkboxes.';
     $this->validation_error = '';
     $this->db_column = 'TEXT';
 }
Beispiel #6
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Content Relationship';
     $this->fieldtype_description = 'Select one or more content items (of any content type) from a list.';
     $this->validation_error = '';
     $this->db_column = 'TEXT';
 }
Beispiel #7
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Checkbox';
     $this->fieldtype_description = 'A single on/off checkbox.';
     $this->validation_error = '';
     $this->db_column = 'TINYINT(1)';
 }
Beispiel #8
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'products', 'collections');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'WYSIWYG Textarea';
     $this->fieldtype_description = 'A textarea that includes an HTML editor.';
     $this->validation_error = '';
     $this->db_column = 'TEXT';
 }
Beispiel #9
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'Member Relationship';
     $this->fieldtype_description = 'Select a member from a list.';
     $this->validation_error = '';
     $this->db_column = 'INT(11)';
 }
Beispiel #10
0
 /**
  * Constructor
  *
  * Assign basic properties to this fieldtype, useful in listing available fieldtypes.
  * Also defines the MySQL column format for fields of this type.
  */
 function __construct()
 {
     parent::__construct();
     $this->compatibility = array('publish', 'users', 'products', 'collections', 'forms');
     $this->enabled = TRUE;
     $this->fieldtype_name = 'File Upload';
     $this->fieldtype_description = 'Upload a file.';
     $this->validation_error = '';
     $this->db_column = 'VARCHAR(150)';
     // configuration
     $this->upload_directory = setting('path_custom_field_uploads');
     // we need to detect file extensions in places
     $this->CI->load->helper('file_extension');
 }