Example #1
0
 function User_mod()
 {
     parent::CI_Model();
     $this->user_menu();
     $query = $this->db->get('group');
     $this->user_cats = $query->result();
 }
Example #2
0
 function __construct()
 {
     parent::CI_Model();
     $this->CI =& get_instance();
     $this->CI->load->library('twitter/twitter');
     // Try to authenticate
     $auth = $this->CI->twitter->oauth($this->CI->settings->item('twitter_consumer_key'), $this->CI->settings->item('twitter_consumer_key_secret'), $this->CI->settings->item('twitter_access_token'), $this->CI->settings->item('twitter_access_token_secret'));
 }
 function __construct()
 {
     parent::CI_Model();
     $this->_obj =& get_instance();
     $migration_current = $this->_get_migration_current();
     if ($migration_current < $this->_migration_latest) {
         $this->_obj->load->dbforge();
         $this->dbforge = $this->_obj->dbforge;
         while ($migration_current < $this->_migration_latest) {
             $process = $migration_current + 1;
             $method = 'migration_' . $process;
             $this->{$method}();
             $this->_save_migration_current($process);
             $migration_current++;
         }
     }
 }
Example #4
0
 function Qhda_mod()
 {
     parent::CI_Model();
     //$this->db->close();
     $config['hostname'] = 'localhost';
     $config['username'] = '******';
     $config['password'] = '';
     $config['database'] = 'b16_3360947_hda';
     $config['dbdriver'] = 'mysql';
     $config['dbprefix'] = null;
     $config['pconnect'] = FALSE;
     $config['db_debug'] = TRUE;
     $config['cache_on'] = FALSE;
     $config['cachedir'] = '';
     $config['char_set'] = 'utf8';
     $config['dbcollat'] = 'utf8_general_ci';
     $config['swap_pre'] = '';
     $this->qhda = $this->load->database($config, true);
     $this->load->helper('article');
 }
Example #5
0
 /**
  * The class constructer, tries to guess
  * the table name.
  *
  * @author Jamie Rumbelow
  */
 public function __construct()
 {
     parent::CI_Model();
     $this->load->helper('inflector');
     $this->_fetch_table();
 }
Example #6
0
 function News_syndication()
 {
     parent::CI_Model();
 }
Example #7
0
 function User_mod()
 {
     parent::CI_Model();
     $this->user_menu();
 }
Example #8
0
 function Action()
 {
     parent::CI_Model();
     $this->load->library('pagination');
 }
Example #9
0
 public function __construct()
 {
     parent::CI_Model();
     $this->_theme = $this->settings->default_theme;
 }
Example #10
0
 function App()
 {
     parent::CI_Model();
 }