/**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     $CI =& get_instance();
     $tables = $CI->config->item('tables', 'fuel');
     parent::__construct($tables['fuel_navigation_groups']);
     $this->add_validation('name', array(&$this, 'valid_name'), lang('error_requires_string_value'));
 }
 function __construct()
 {
     parent::__construct('blog_comments', BLOG_FOLDER);
     // table name
     $this->add_validation('author_email', 'valid_email', lang('blog_error_invalid_comment_email'));
     $this->add_filter($this->_tables['blog_posts'] . '.title');
 }
 function __construct()
 {
     parent::__construct('blog_posts', BLOG_FOLDER);
     // table name
     $CI =& get_instance();
     if ($CI->fuel->blog->config('multiple_authors')) {
         $authors = array('authors' => array('model' => array(BLOG_FOLDER => 'blog_users')));
         $this->has_many = array_merge($authors, $this->has_many);
     }
 }
 public function __construct()
 {
     parent::__construct($this->name);
     // table name
     $this->record_class = ucfirst($this->name) . '_item';
     if (!empty($this->has_many['tags'])) {
         $this->has_many['tags']['where'] = '(FIND_IN_SET("' . $this->name . '", ' . $this->_tables['fuel_tags'] . '.context) OR ' . $this->_tables['fuel_tags'] . '.context="")';
     }
     if (!empty($this->foreign_keys['category_id'])) {
         $this->foreign_keys['category_id']['where'] = '(FIND_IN_SET("' . $this->name . '", ' . $this->_tables['fuel_categories'] . '.context) OR ' . $this->_tables['fuel_categories'] . '.context="")';
     }
 }
 public function __construct($table_name)
 {
     // Main entries table
     parent::__construct($table_name);
     // Align record model name
     // Define the record class name, rather for it to when crazy
     $this->record_class = $table_name . "_record";
     // 1. For benchmark (profiler) to keep track total execute time
     //    Able to disable through "application/config/MY_config.php"
     // 2. For Error switching purpose
     //$this->CI =& get_instance();
     //$this->CI->config->load("MY_config");
     $this->config->load("MY_config");
 }
Example #6
0
 public function __construct()
 {
     parent::__construct('blocks');
 }
 function __construct()
 {
     parent::__construct('fuel_blog_links', BLOG_FOLDER);
     // table name
 }
 public function __construct()
 {
     parent::__construct('CB_Home_category');
 }
 function __construct()
 {
     parent::__construct('fuel_newsletter_drafts', NEWSLETTER_FOLDER);
 }
 function __construct()
 {
     parent::__construct('articles');
     // table name
 }
 function __construct()
 {
     parent::__construct('features');
     // table name
 }
 /**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     parent::__construct('fuel_permissions');
 }
Example #13
0
 /**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct($logs_table = 'fuel_logs')
 {
     parent::__construct($logs_table);
     $this->_logs_table = $logs_table == 'fuel_logs' ? $this->_tables[$logs_table] : $logs_table;
     $this->filters = array('entry_date', $this->_tables['fuel_users'] . '.first_name', $this->_tables['fuel_users'] . '.last_name', 'message');
 }
Example #14
0
 /**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     parent::__construct('fuel_tags');
     // table name
     $this->init_relationships();
 }
Example #15
0
 function __construct()
 {
     parent::__construct('logs');
 }
 function __construct()
 {
     parent::__construct('wa_auctions');
 }
Example #17
0
 function __construct()
 {
     parent::__construct('genre');
 }
 function __construct()
 {
     parent::__construct('wa_mail');
 }
Example #19
0
 public function __construct()
 {
     parent::__construct('careers');
     // table name
 }
 function __construct()
 {
     parent::__construct('fuel_blog_users', BLOG_FOLDER);
     // table name
     $this->add_validation('email', 'valid_email', 'Please enter in a valid email');
 }
 /**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     parent::__construct('fuel_pagevars');
 }
 function __construct()
 {
     parent::__construct('social_icons', SOCIAL_FOLDER);
     // table name
 }
 function __construct()
 {
     parent::__construct('fuel_site_variables');
 }
 public function __construct()
 {
     parent::__construct('form_entries', FORMS_FOLDER);
     // table name
     $this->filters = array($this->_tables['forms'] . '.name', 'post', 'date_added');
 }
 function __construct()
 {
     parent::__construct('wa_enchantments');
 }
 function __construct()
 {
     parent::__construct('events');
     // table name
 }
 /**
  * Constructor.
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     parent::__construct('fuel_categories');
     // table name
 }
 function __construct()
 {
     parent::__construct('blog_categories', BLOG_FOLDER);
     // table name
 }
Example #29
0
	function __construct()
	{
		parent::__construct('navigation');
		$this->required['group_id'] = lang('error_create_nav_group');
	}
 function __construct()
 {
     parent::__construct('fuel_newsletter_historic', NEWSLETTER_FOLDER);
 }