# \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
abstract

File
  lib/class.lookup_table.php
Class hierarchy
  \CGExtensions\lookup_table

## Tags

todo |

## Properties

### $name

    $name : string

#### Type

string

#

## Tags

None found

### $description

    $description : string

#### Type

string

#

## Tags

None found

### $id

    $id : int

#### Type

int

#

## Tags

None found

## Methods

### table_name()

    table_name() : string

Return the table name.

uses late static bindings.

#### Returns

string

#

static

## Tags

todo |

### 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

#

static

## Tags

todo |

### install()

    install()

Create the database table for this lookup table

#

static

## Tags

todo |

### uninstall()

    uninstall()

Destroy the database table for this lookup table.

#

static

## Tags

todo |

### __set()

    __set( $key,  $val)

#### Parameters

| $key |
| $val |

#

## Tags

todo |

### __isset()

    __isset( $key)

#### Parameters

| $key |

#

## Tags

todo |

### __unset()

    __unset( $key)

#### Parameters

| $key |

#

## Tags

todo |

### validate()

    validate()

#

## Tags

todo |

### save()

    save()

#

## Tags

todo |

### _insert()

    _insert()

#

## Tags

todo |

### _update()

    _update()

#

## Tags

todo |

### delete()

    delete( $item_id)

#### Parameters

| $item_id |

#

static

## Tags

todo |

### move_up()

    move_up( $item_a_id)

#### Parameters

| $item_a_id |

#

static

## Tags

todo |

### move_down()

    move_down( $item_a_id)

#### Parameters

| $item_a_id |

#

static

## Tags

todo |

### load()

    load( $id)

#### Parameters

| $id |

#

static

## Tags

todo |

### load_all()

    load_all()

#

static

## Tags

todo |

### add()

    add( $name,  $description)

#### Parameters

| $name |
| $description |

#

static

## Tags

todo |

### exists()

    exists( $id)

#### Parameters

| $id |

#

static

## Tags

todo |

### get_list()

    get_list()

#

static

## Tags

todo |

### class.lookup_table.php