Functions
edit_formats.php File Reference

Displays a form for editing formats. More...

Functions

 GetAllIDs ($in_lang_enum, $in_sort_by= 'shared_id')
 Gets an array, with all IDs, in all languages. The idea behind this is to ensure that every available format is represented in the list, even if it is not for the language being edited.
 usort_by_id ($a, $b)
 Sorter callback for formats.
 usort_by_key ($a, $b)
 Sorter callback for formats.
 usort_by_type ($a, $b)
 Sorter callback for formats.
 DisplayFormatsForEdit ($in_http_vars)
 This returns a form, used to edit formats.

Detailed Description

Displays a form for editing formats.

This file is part of the Basic Meeting List Toolbox (BMLT).

Find out more at: http://magshare.org/bmlt

BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.


Function Documentation

DisplayFormatsForEdit ( in_http_vars)

This returns a form, used to edit formats.

Returns:
a string, containing the HTML for the form
Parameters:
in_http_varsAn associative array that is a blend of the $_POST and $_GET arrays.

Referenced by GetControlPanelHTML().

GetAllIDs ( in_lang_enum,
in_sort_by = 'shared_id' 
)

Gets an array, with all IDs, in all languages. The idea behind this is to ensure that every available format is represented in the list, even if it is not for the language being edited.

Returns:
an associative array, with all the IDs as keys, sorted, and all the language enums as values.
Parameters:
in_lang_enumAn enum, for the lanuage selected as primary.
in_sort_byA string. This tells the function how to sort the returned array. Default is by ID.
usort_by_id ( a,
b 
)

Sorter callback for formats.

Returns:
an integer -1, 0 1, depending on how they compare
usort_by_key ( a,
b 
)

Sorter callback for formats.

Returns:
an integer -1, 0 1, depending on how they compare
usort_by_type ( a,
b 
)

Sorter callback for formats.

Returns:
an integer -1, 0 1, depending on how they compare
 All Classes Files Functions Variables Enumerations