ONO::FW::Apps::ToolBox

Functions

apps_base();

Get the URL base for apps on a specific site.

ONO::FW::Apps::ToolBox->apps_base( );
returns: $APPSBASE

conf_input();

Configuration input elements.

Switches:

-C comma option: add prefer comma option (huh?)
-d disable (NOT implemented for all types yet!)
-h hide (will be shown when clicking a 'more options' button)
-H hide alt (custom for ops for example)
-i inset, displays name field as part of input item, before input
-I use $type instead of random ID, also see -J and $vars{'app_input_custom_row_id'}
-j inset after, displays name field as part of input item, after input
-J use $data[1] instead of random ID, also see -I and $vars{'app_input_custom_row_id'}
-l list manager button (used by selections for example)
-L shift left 10
-m mix mode (used by langs for example)
-M minimize elements (if possible / available)
-n name field behind item (not available for all options (yet))
-N don't display the name field
-O less standard options for this type
-p prefer option (used by "selections" for example)
-P force zero padding
-s apply standard name in field (for types that usually don't use name)
-S split to two colums
-t transparent
-T vtop

ONO::FW::Apps::ToolBox->conf_input( $type, $BLK_ref, $vars_ref, $switches, @data );
returns: qq~<tr id="ono_fwapps_input_row_$ID"$TROPTS><td class="tar">$NAME</td><td$CLASS>$CONF</td></tr>$ADDROW~

conf_input_box_close();

Configuration input box helper: close

ONO::FW::Apps::ToolBox->conf_input_box_close( );
returns: qq~ </table> </div> </td> </tr> ~

conf_input_box_open();

Configuration input box helper: open

ONO::FW::Apps::ToolBox->conf_input_box_open( );
returns: qq~<tr> <td></td> <td> <div class="$BOX"> <table class="$CL"> ~

conf_input_splitrow_close();

Configuration input box helper: split row - close

ONO::FW::Apps::ToolBox->conf_input_splitrow_close( );
returns: qq~ </table> </td> </tr> </table> </td> </tr> ~

conf_input_splitrow_col();

Configuration input box helper: split row - column

ONO::FW::Apps::ToolBox->conf_input_splitrow_col( );
returns: qq~ </table> </td> <td class="p0 $_[1]"> <table class="$CL"> ~

conf_input_splitrow_open();

Configuration input box helper: split row - open

ONO::FW::Apps::ToolBox->conf_input_splitrow_open( );
returns: qq~<tr> <td class="p0" colspan="2"> <table class="wide_table"> <tr class="vtop"> <td class="p0 $_[1]"> <table class="$CL"> ~

conf_input_splitrow_row();

Configuration input box helper: split row - row

ONO::FW::Apps::ToolBox->conf_input_splitrow_row( );
returns: qq~ </table> </td> </tr> <tr class="vtop"> <td class="p0 $_[1]"> <table class="$CL"> ~

conf_input_splitrow_table_class();

Configuration input box helper: split row - get table class

ONO::FW::Apps::ToolBox->conf_input_splitrow_table_class( );

copyright();

Get copyright information.

ONO::FW::Apps::ToolBox->copyright( );

fix_broken_app_link();

This is a dirty fix that will correct broken app IDs for older e-learning apps on the Morzino/Oli platform

ONO::FW::Apps::ToolBox->fix_broken_app_link( );

get_app_name();

Get app name.

ONO::FW::Apps::ToolBox->get_app_name( $db, $community, $app, $lang );
returns: $AppName

get_custom_lists();

Get custom lists defined by users.

ONO::FW::Apps::ToolBox->get_custom_lists( $db, $community, $user, $type, $langs );
returns: ($MANAGE_LISTS,$CUSTOM)

Sub-Modules

none

Dependencies

Code