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
delete() delete(integer $item_id) Given an item id, delete it from the databas Parameters integer $item_id
move_up() move_up(integer $item_a_id) Move an item up amongst its peers. This method automatically saves effected items to the databse. Parameters integer $item_a_id
move_down() move_down(integer $item_a_id) Move an item down amongst its peers. This method automatically saves effected items to the databse. Parameters integer $item_a_id
load() load(integer $id) : object load a lookup table item Parameters integer $id The table id Returns object
add() add(string $name, string $description = null) Add a new lookup table item Parameters string $name string $description
exists() exists(integer $id) : boolean Test if an item exists by its id. Parameters integer $id Returns boolean
get_list() get_list() : array Get the items for a lookup table in a format that is suitable to use in a dropdown Returns array