Example #1
0
 function __construct()
 {
     parent::__construct();
     $tables = $this->db->list_tables();
     // Show non-cms tables.
     $this->data['tables'] = array();
     foreach ($tables as $key => $row) {
         if (stripos($row, 'CMS_') === false) {
             $this->data['tables'][$row] = $row;
         }
     }
     // Setup field types.
     $this->data['field_types'] = array('default' => 'Default', 'cms-type-ahead' => 'Type Ahead', 'disabled-text' => 'Disabled Text', 'ignore' => 'Ignore Field', 'cms-image' => 'Image', 'us-timezones' => 'US Timezones');
     // Add custom fields.
     $custom = CMS\Libraries\Fields::get_all_custom_fields();
     foreach ($custom as $key => $row) {
         $this->data['field_types'][$key] = $key;
     }
 }