/** * Constructor * * @param null * @retun array */ public function __construct() { $this->_defaults = array('supportkey' => '', 'host' => '', 'protocol' => 'http', 'method' => 'post', 'encryption' => '0', 'encryption_key' => null, 'http_auth' => 0, 'http_user' => '', 'http_password' => '', 'http_authtype' => CURLAUTH_ANY, 'enforce_ssl' => 0, 'ssl_version' => 0, 'ssl_ciphers' => null, 'basedir' => '', 'offline' => 0, 'offline_message' => 'The webshop is currently not available. Please come back again later.', 'offline_exclude_ip' => '', 'website' => '1', 'storegroup' => null, 'storeview' => null, 'backend' => 'admin', 'api_user' => '', 'api_key' => '', 'api_widgets' => '1', 'api_type' => 'jsonrpc', 'enable_cache' => '0', 'cache_time' => '300', 'debug' => '0', 'debug_ip' => '', 'debug_log' => 'db', 'debug_level' => 'all', 'debug_console' => '1', 'debug_bar' => '1', 'debug_bar_parts' => '1', 'debug_bar_request' => '1', 'debug_bar_store' => '1', 'debug_display_errors' => '0', 'disable_css_mage' => '', 'disable_css_all' => 0, 'disable_default_css' => 1, 'disable_js_mage' => 'varien/menu.js,lib/ds-sleight.js,js/ie6.js', 'disable_js_mootools' => 1, 'disable_js_footools' => 0, 'disable_js_frototype' => 0, 'disable_js_jquery' => 0, 'disable_js_prototype' => 0, 'disable_js_custom' => '', 'disable_js_all' => 1, 'replace_jquery' => 1, 'merge_js' => 0, 'use_google_api' => 0, 'use_protoaculous' => 0, 'use_protoculous' => 0, 'bridge_cookie_all' => 0, 'bridge_cookie_custom' => '', 'flush_positions' => 0, 'flush_positions_home' => '', 'flush_positions_customer' => '', 'flush_positions_product' => '', 'flush_positions_category' => '', 'flush_positions_cart' => '', 'flush_positions_checkout' => '', 'use_rootmenu' => 1, 'preload_all_modules' => 0, 'enforce_rootmenu' => 0, 'customer_group' => '', 'customer_pages' => '', 'usergroup' => '', 'enable_sso' => 0, 'enable_usersync' => 1, 'username_from_email' => 0, 'realname_from_firstlast' => 1, 'realname_with_space' => 1, 'enable_auth_backend' => 0, 'enable_auth_frontend' => 1, 'enable_content_plugins' => 0, 'enable_block_rendering' => 0, 'enable_jdoc_tags' => 1, 'enable_messages' => 1, 'enable_breadcrumbs' => 1, 'modify_url' => 1, 'link_to_magento' => 0, 'module_chrome' => 'raw', 'module_show_title' => 1, 'mobile_joomla_theme' => 'magebridge_mobile', 'mobile_magento_theme' => 'iphone', 'magento_theme' => '', 'spoof_browser' => 1, 'spoof_headers' => 0, 'curl_post_as_array' => 1, 'curl_timeout' => 120, 'enable_notfound' => 0, 'payment_urls' => '', 'direct_output' => '', 'template' => '', 'update_format' => '', 'update_method' => 'curl', 'backend_feed' => 1, 'users_website_id' => '', 'users_group_id' => '', 'keep_alive' => '1', 'load_urls' => '1', 'load_stores' => '1', 'filter_content' => '1', 'filter_store_from_url' => '1', 'show_help' => '1', 'enable_canonical' => '1', 'use_referer_for_homepage_redirects' => '1', 'use_homepage_for_homepage_redirects' => '0'); parent::__construct(); }
/** * Constructor * * @access public * @subpackage Yireo * @param string $tableAlias * @return null */ public function __construct($tableAlias = null) { // Import use full variables from JFactory $this->db = JFactory::getDBO(); $this->app = JFactory::getApplication(); $this->application = $this->app; $this->jinput = $this->app->input; $this->user = JFactory::getUser(); // Create the option-namespace $classParts = explode('Model', get_class($this)); $this->_view = !empty($classParts[1]) ? strtolower($classParts[1]) : $this->jinput->getCmd('view'); $this->_option = $this->getOption(); $this->_option_id = $this->_option . '_' . $this->_view . '_'; if ($this->app->isSite()) { $this->_option_id .= $this->jinput->getInt('Itemid') . '_'; } $this->_component = preg_replace('/^com_/', '', $this->_option); $this->_component = preg_replace('/[^A-Z0-9_]/i', '', $this->_component); $this->_component = str_replace(' ', '', ucwords(str_replace('_', ' ', $this->_component))); // Call the parent constructor $rt = parent::__construct(); return $rt; }