Apache::edit - edit mode helpers
Invoked by many homework and xml related modules.
&Apache::edit::SUBROUTINENAME(ARGUMENTS);
This module outputs HTML syntax helpful for the rendering of edit mode interfaces.
This is part of the LearningOnline Network with CAPA project described at http://www.lon-capa.org.
initialize_edit()
initialize edit (set colordepth to zero)
tag_start($target,$token,$description)
provide deletion and insertion lists for the manipulation of a start tag; return a scalar string
tag_end($target,$token,$description)
ending syntax corresponding to &tag_start. return a scalar string.
start_table($token)
start table; update colordepth; return scalar string.
end_table()
reduce color depth; end table; return scalar string
start_spanning_row()
start a new table row spanning the 'edit' environment.
start_row()
start a new table row and element.
end_row()
end current table element and row.
movebuttons($target,$token)
move-up and move-down buttons; return scalar string
deletelist($target,$token)
provide a yes option in an HTML select element; return scalar string
respond to a user delete request by passing relevant stack and array information to various rendering functions; return a scalar string
get_insert_list($token)
provide an insertion list based on possibilities from lonxml; return a scalar string
insertlist($target,$token)
api that uses get_insert_list; return a scalar string
handleinsert($token)
provide an insertion list based on possibilities from lonxml; return a scalar string
get_insert_list($token)
provide an insertion list based on possibilities from lonxml; return a scalar string
browse($elementname)
provide a link which will open up the filesystem browser (lonindexer) and, once a file is selected, place the result in the form element $elementname.
search($elementname)
provide a link which will open up the filesystem searcher (lonsearchcat) and, once a file is selected, place the result in the form element $elementname.
editline(tag,data,description,size)
Provide a <input type=``text'' ../> for single-line text entry. This is to be used for text enclosed by tags, not arguements/parameters associated with a tag.