This documentation applies to Ka Extensions for OpenCart 4.x only. It is not compatible with OpenCart 3.
Service
Table of Contents
Classes
- Arrays
- Helpful functions for managing arrays.
- Curl
- Simplifies http requests. Optional.
- MailException
- An exception thrown by the Mail class when an email cannot be sent.
- FileUtf8
- Reads and writes files in different charsets through UTF-8 conversion filters. It handles BOM
and MacOS line endings.
- Format
- Formats and parses values (numbers, prices, dates, weights, lengths, sizes) with language based settings.
- KaGlobal
- Contains several global helper methods: registry access, area and version checks, extension and
file helpers.
- KaURLify
- Transliterates text to ASCII and converts it to URL-friendly strings (SEO keywords). Based on
https://github.com/jbroadway/urlify.
- Language
- Helps to get language data by ID or vice versa.
- Mail
- Simplifies email submission. Builds emails from templates and language files and sends them with
the store mail settings.
- Store
- Gives information about stores. Results are cached per store.
- UrlParams
- This is a service class for storing url parameters and building URLs.
Traits
- TraitSession
- Provides functions for controller/model to generate unique session variables within a class.