\CGExtensionslookup_table

An abstract class for a generic lookup table.

This class manages a table, and it's items.

Summary

Methods
Properties
Constants
table_name()
get_addedit_formdata()
install()
uninstall()
__set()
__isset()
__unset()
validate()
save()
_insert()
_update()
delete()
move_up()
move_down()
load()
load_all()
add()
exists()
get_list()
$name
$description
$id
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Type

string

$description

$description : string

Type

string

$id

$id : int

Type

int

Methods

table_name()

table_name() : string

Return the table name.

uses late static bindings.

Returns

string

get_addedit_formdata()

get_addedit_formdata() : \CGExtensions\lookup_form_data

Return a title for the add/edit form.

uses late static bindings.

Returns

\CGExtensions\lookup_form_data

install()

install()

Create the database table for this lookup table

uninstall()

uninstall()

Destroy the database table for this lookup table.

__set()

__set( $key,  $val)

Parameters

$key
$val

__isset()

__isset( $key)

Parameters

$key

__unset()

__unset( $key)

Parameters

$key

validate()

validate()

save()

save()

_insert()

_insert()

_update()

_update()

delete()

delete( $item_id)

Parameters

$item_id

move_up()

move_up( $item_a_id)

Parameters

$item_a_id

move_down()

move_down( $item_a_id)

Parameters

$item_a_id

load()

load( $id)

Parameters

$id

load_all()

load_all()

add()

add( $name,  $description)

Parameters

$name
$description

exists()

exists( $id)

Parameters

$id

get_list()

get_list()