Ka Extensions for OpenCart 4

This documentation applies to Ka Extensions for OpenCart 4.x only. It is not compatible with OpenCart 3.

Tables
in component

Gives access to table objects by their model path or class name. Objects are cached.

Table of Contents

Properties

Methods

getTable()  : object
Returns a cached table object. It first tries an area-specific model via kamodel(), otherwise creates the class by name.

Properties

$tables

protected static mixed $tables = array()

Methods

getTable()

Returns a cached table object. It first tries an area-specific model via kamodel(), otherwise creates the class by name.

public static getTable(mixed $tbl) : object

$tbl — table model path or class name with '/' separators.

Parameters
$tbl : mixed
Tags
throws
Exception

If the table class does not exist.

Return values
object —

Table object.


        
On this page

Search results