示例#1
0
文件: select.php 项目: Rotron/hero
 /**
  * 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)';
 }
示例#2
0
文件: text.php 项目: josev814/hero
 /**
  * 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)';
 }
示例#3
0
文件: textarea.php 项目: Rotron/hero
 /**
  * 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';
 }
示例#4
0
文件: datetime.php 项目: Rotron/hero
 /**
  * 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';
 }
示例#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';
 }
示例#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';
 }
示例#7
0
文件: checkbox.php 项目: Rotron/hero
 /**
  * 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)';
 }
示例#8
0
文件: wysiwyg.php 项目: Rotron/hero
 /**
  * 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';
 }
示例#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)';
 }
示例#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');
 }