コード例 #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
ファイル: multicheckbox.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 = 'Multicheckbox Options';
     $this->fieldtype_description = 'Check one or many options in a list of checkboxes.';
     $this->validation_error = '';
     $this->db_column = 'TEXT';
 }
コード例 #6
0
ファイル: relationship.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 = '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
ファイル: member_relationship.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 = 'Member Relationship';
     $this->fieldtype_description = 'Select a member from a list.';
     $this->validation_error = '';
     $this->db_column = 'INT(11)';
 }
コード例 #10
0
ファイル: file_upload.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 = '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');
 }