DBIx::HTMLView::CGIListView - A simple CGI editor for single posts


NAME

  DBIx::HTMLView::CGIListView - A simple CGI editor for single posts


SYNOPSIS

  $view=new DBIx::HTMLView::CGIReqEdit($script, $post);
  print $view->view_html;


DESCRIPTION

This is a post editer using the CGI interface and HTML forms to present the user interface to the user. It's a very simple interface, that list all the flds and allows the user to modify.

A Fld can be taged read-only, and then it will not show up in the list.


METHODS =cut

package DBIx::HTMLView::CGIReqEdit; use strict;

use vars qw(@ISA); require DBIx::HTMLView::CGIView; @ISA = qw(DBIx::HTMLView::CGIView);

$view=DBIx::HTMLView::CGIReqEdit->new($script, $post, $read_only, $cgi)

Creats a new post editor to edit the post $post (a DBIx::HTMLView::Post object. $read_only should be a regular expretion matching the fields that should not show up in the editor.

Note that this is not a secure way to prevent users from getting access to specific fields as some simple tampering with the html forms passed to the user will bring up the other tabels as well for editing.

$view->post

Returns the post being edited (a DBIx::HTMLView::Post object).

$view->db

Returns the databse we'r working with (a DBIx::HTMLVIew::Db object).

$view->tab

Returns the table we'r working with (a DBIx::HTMLVIew::Table object.)

$view->read_only

Returns the readonly reg exp as psecified in the constructor parameter $read_only.

$view->view_html

Returns the html code for the editor as specified by previous methods.

 DBIx::HTMLView::CGIListView - A simple CGI editor for single posts