Permalink
Browse files

adding base field type

  • Loading branch information...
Mark Huot Mark Huot
Mark Huot authored and Mark Huot committed Mar 2, 2011
1 parent ada7183 commit ebf32f5624968627ed7e9ddf509888239842f0d5
Showing with 59 additions and 0 deletions.
  1. +59 −0 ft.base.php
View
@@ -0,0 +1,59 @@
+<?php
+
+class Base_ft extends EE_Fieldtype {
+
+ public $info = array(
+ 'name' => 'Base',
+ 'version' => '1.0.0'
+ );
+
+ public function display_field($data)
+ {
+ return form_input(array(
+ 'name' => $this->field_name,
+ 'id' => $this->field_id,
+ 'value' => $data
+ ));
+ }
+
+ public function replace_tag($data, $params = array(), $tagdata = FALSE)
+ {
+ return $data;
+ }
+
+ public function display_global_settings()
+ {
+ $val = array_merge($this->settings, $_POST);
+
+ return ''; // HTML FORM ELEMENTS
+ }
+
+ public function save_global_settings()
+ {
+ return array_merge($this->settings, $_POST);
+ }
+
+ public function display_settings($data)
+ {
+
+ }
+
+ public function save_settings($data)
+ {
+ return array(
+
+ );
+ }
+
+ function install()
+ {
+ return array(
+
+ );
+ }
+
+ function _cp_js()
+ {
+
+ }
+}

0 comments on commit ebf32f5

Please sign in to comment.