Bigtop

 view release on metacpan or  search on metacpan

lib/Bigtop/TentMaker.pm  view on Meta::CPAN

    keyword
    value

keyword is the name of that config statement.

value is either the string 'false' or anything else.  If the value eq 'false',
the accessor flag is removed.  Otherwise, it is set.

=head2 do_update_name

Changes the name of a named block.

Params:

    type::ident
    new_value

Each nameable block in the Bigtop AST has a unique ident.  Calling this with
the type of the block, that ident, and a new value changes its name.

=head2 do_create_app_block

Makes a new app level block.

Params:

    type::name
    subtype

The type can be sequence, table, join_table, or controller.  The name
must be a valid ident.  If they block's type understands a subtype,
include it as a second, separate, parameter.  Only controllers
have types and they are: AutoCRUD, CRUD, or stub.

It uses create_block on the AST.

=head2 do_create_subblock

Makes a new block inside a table or controller.

Params:

    parent_type::parent_ident::type::name
    subtype

The parent type can be table or controller.  The type can be field (for
tables) or method (for controllers).  The name must be a valid ident.
Methods must have subtypes.  Choose from: AutoCRUD_form, CRUD_form,
or main_listing.

It uses create_subblock on the AST.

=head2 do_delete_block

Removes a block from the AST.

Params:

    ident

The front end is responsible for any user confirmation popups.

It uses delete_block on the AST.

=head2 do_type_change

Changes the is type for blocks which acept those.

Params:

    ident
    new_type

new_type must be a string naming the new type.

Applies to controllers and methods.

It uses type_change on the AST.

=head2 do_update_block_statement_text

Creates/updates a statement in a block.

Params:

    block_type
    ident::keyword
    new_value

block_type is table, join_table, or controller.

If new_value is false, the statement will be removed.

It uses do_update_statement (see below).

=head2 do_update_controller_statement_bool

Directly calls do_update_block_statement_text, specifying type controller.

If value eq 'true', the statement is made true, otherwise it will be
removed.

=head2 do_update_controller_statement_text

Directly calls do_update_block_statement_text, specifying type controller.

=head2 do_update_controller_statement_pair

Directly calls do_update_subblock_statement_pair, specifying type controller.

=head2 do_update_statement

Updates statements at many levels of the tree, including table, join_table,
controller, field, and method blocks.

Params:

    block_type
    block_ident
    keyword
    new_value



( run in 1.774 second using v1.01-cache-2.11-cpan-364913b4093 )