Eric Lease Morgan > MyLibrary-3.0.4 > MyLibrary::Interface::Admin

Download:
MyLibrary-3.0.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

MyLibrary::Interface::Admin

SYNOPSIS ^

        use MyLibrary::Interface::Admin;

DESCRIPTION ^

Modular admin interface components for MyLibrary.

EXPORT ^

Few methods will be exported.

METHODS ^

Most of the methods employed here are class methods. However, class objects are created with embedded attributes.

edit_html(\%attr) ^

define_interface(\%attr) ^

This is a constructor method which can be used to create the vital attributes of an interface object. These attributes are then subsumed when the edit_html constructor is called. Use this method to directly manipulate the attributes of the interface being called.

interface_text() ^

interface_name() ^

get_interface_names(\%attr) ^

commit_interface() ^

This method can be used to either update the definition of an interface or creat a new interface.

        # create and commit a new interface (use the interface() constructor method)
        $interface = $MyLibrary::Interface::Admin->interface(interface_name => $name, interface_text => $html);
        $interface->commit_interface();

        # update the values of an existing interface
syntax highlighting: