Пример #1
0
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     //	Default export sources
     $_acl = active_user('acl');
     $this->_export_sources = array();
     if ($this->user_model->is_superuser() || isset($_acl['admin']['accounts']['index'])) {
         $this->_export_sources[] = array('Members: All', 'Export a list of all the site\'s registered users and their meta data.', 'users_all');
     }
     if (module_is_enabled('shop')) {
         if ($this->user_model->is_superuser() || isset($_acl['admin']['shop']['inventory'])) {
             $this->_export_sources[] = array('Shop: Inventory', 'Export a list of the shop\'s inventory.', 'shop_inventory');
         }
         if ($this->user_model->is_superuser() || isset($_acl['admin']['shop']['orders'])) {
             $this->_export_sources[] = array('Shop: Orders', 'Export a list of all shop orders and their products.', 'shop_orders');
         }
         if ($this->user_model->is_superuser() || isset($_acl['admin']['shop']['vouchers'])) {
             $this->_export_sources[] = array('Shop: Vouchers', 'Export a list of all shop vouchers.', 'shop_vouchers');
         }
     }
     // --------------------------------------------------------------------------
     //	Default export formats
     $this->_export_formats = array();
     $this->_export_formats[] = array('CSV', 'Easily imports to many software packages, including Microsoft Excel.', 'csv');
     $this->_export_formats[] = array('HTML', 'Produces an HTML table containing the data', 'html');
     $this->_export_formats[] = array('PHP Serialize', 'Export as an object serialized using PHP\'s serialize() function', 'serialize');
     $this->_export_formats[] = array('JSON', 'Export as a JSON array', 'json');
 }
Пример #2
0
 /**
  * Constructor
  *
  * @access public
  * @param none
  * @return void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     $this->load->model('blog/blog_model');
     $this->load->model('blog/blog_post_model');
     $this->load->model('blog/blog_category_model');
     $this->load->model('blog/blog_tag_model');
 }
Пример #3
0
 /**
  * Constructor
  *
  * @access	public
  * @param	none
  * @return	void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     //	Defaults defaults
     $this->accounts_group = FALSE;
     $this->accounts_where = array();
     $this->accounts_columns = array();
     $this->accounts_actions = array();
     $this->accounts_sortfields = array();
     // --------------------------------------------------------------------------
     $this->accounts_sortfields[] = array('label' => lang('accounts_sort_id'), 'col' => 'u.id');
     $this->accounts_sortfields[] = array('label' => lang('accounts_sort_group_id'), 'col' => 'u.group_id');
     $this->accounts_sortfields[] = array('label' => lang('accounts_sort_first'), 'col' => 'u.first_name');
     $this->accounts_sortfields[] = array('label' => lang('accounts_sort_last'), 'col' => 'u.last_name');
     $this->accounts_sortfields[] = array('label' => lang('accounts_sort_email'), 'col' => 'ue.email');
 }
Пример #4
0
 /**
  * Constructor
  *
  * @access	public
  * @param	none
  * @return	void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     $this->load->model('system/app_notification_model');
 }
Пример #5
0
 /**
  * Constructor
  *
  * @access	public
  * @param	none
  * @return	void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     $this->load->library('emailer');
 }
Пример #6
0
 /**
  * Constructor
  *
  * @access	public
  * @param	none
  * @return	void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     $this->load->model('testimonials/testimonial_model');
 }
Пример #7
0
 /**
  * Constructor
  *
  * @access	public
  * @param	none
  * @return	void
  **/
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     //	Defaults defaults
     $this->shop_inventory_group = FALSE;
     $this->shop_inventory_where = array();
     $this->shop_inventory_actions = array();
     $this->shop_inventory_sortfields = array();
     $this->shop_orders_group = FALSE;
     $this->shop_orders_where = array();
     $this->shop_orders_actions = array();
     $this->shop_orders_sortfields = array();
     $this->shop_vouchers_group = FALSE;
     $this->shop_vouchers_where = array();
     $this->shop_vouchers_actions = array();
     $this->shop_vouchers_sortfields = array();
     // --------------------------------------------------------------------------
     $this->shop_inventory_sortfields[] = array('label' => 'ID', 'col' => 'p.id');
     $this->shop_inventory_sortfields[] = array('label' => 'Title', 'col' => 'p.title');
     $this->shop_inventory_sortfields[] = array('label' => 'Type', 'col' => 'pt.label');
     $this->shop_inventory_sortfields[] = array('label' => 'Price', 'col' => 'p.price');
     $this->shop_inventory_sortfields[] = array('label' => 'Active', 'col' => 'p.is_active');
     $this->shop_inventory_sortfields[] = array('label' => 'Modified', 'col' => 'p.modified');
     $this->shop_orders_sortfields[] = array('label' => 'ID', 'col' => 'o.id');
     $this->shop_orders_sortfields[] = array('label' => 'Date Placed', 'col' => 'o.created');
     $this->shop_orders_sortfields[] = array('label' => 'Last Modified', 'col' => 'o.modified');
     $this->shop_orders_sortfields[] = array('label' => 'Value', 'col' => 'o.grand_total');
     $this->shop_vouchers_sortfields[] = array('label' => 'ID', 'col' => 'v.id');
     $this->shop_vouchers_sortfields[] = array('label' => 'Code', 'col' => 'v.code');
     // --------------------------------------------------------------------------
     //	Load models which this controller depends on
     $this->load->model('shop/shop_model');
     $this->load->model('shop/shop_currency_model');
     $this->load->model('shop/shop_product_model');
     $this->load->model('shop/shop_product_type_model');
     $this->load->model('shop/shop_tax_rate_model');
 }
Пример #8
0
 public function __construct()
 {
     parent::__construct();
     // --------------------------------------------------------------------------
     //	Load helpers
     $this->load->helper('cms');
 }