/** * Constructor * */ public function __construct() { parent::__construct(); self::$ga_email = Settings::get('google_analytics_email'); self::$ga_password = Settings::get('google_analytics_password'); self::$ga_profile_id = Settings::get('google_analytics_profile_id'); self::$ga_url = Settings::get('google_analytics_url'); if (self::$ga_email != '' && self::$ga_password != '' && self::$ga_profile_id != '' && self::$ga_url != '') { self::$should_access = TRUE; } }