modules/Administration/Common.php

Show: inherited
    Table of Contents

    Functions

    functionapp_string_duplicate_check(  $name,  $file_contents ) : void

    Parameters
    Name Type Description
    $name
    $file_contents
    functioncreate_dropdown_html( \identifier $identifier,  $pairs,  $first_entry = '',  $selected_key = '' ) : \string

    Parameters
    Name Type Description
    $identifier \identifier

    string, pairs array, first_entry string, selected_key string

    $pairs
    $first_entry
    $selected_key
    Returns
    Type Description
    \string
    Details
    Desc
    Generates the HTML for a dropdown list.  
    functioncreate_dropdown_lang_pak_contents( \the_array $the_array,  $language ) : \string

    Parameters
    Name Type Description
    $the_array \the_array

    array, language string

    $language
    Returns
    Type Description
    \string
    Details
    Desc
    Returns the contents of the customized language pack.  
    functioncreate_dropdown_type( \dropdown_name $dropdown_name,  $language ) : bool

    Parameters
    Name Type Description
    $dropdown_name \dropdown_name

    string, language string

    $language
    Returns
    Type Description
    bool
    Details
    Desc
    Creates a new dropdown type.  
    functioncreate_dropdown_type_all_lang( \dropdown_name $dropdown_name ) : bool

    Parameters
    Name Type Description
    $dropdown_name \dropdown_name

    string

    Returns
    Type Description
    bool
    Details
    Desc
    Wrapper function that creates a dropdown type for all languages.  
    functioncreate_field_label( \module $module,  $language,  $key,  $value,  $overwrite = false ) : bool

    Parameters
    Name Type Description
    $module \module

    string, language string, key string, value string

    $language
    $key
    $value
    $overwrite
    Returns
    Type Description
    bool
    Details
    Desc
    Returns true if new field label can be created, false otherwise. Probable reason for returning false: new_field_key already exists.  
    functioncreate_field_label_all_lang( \module $module,  $key,  $value,  $overwrite = false ) : bool

    Parameters
    Name Type Description
    $module \module

    string, key string, value string

    $key
    $value
    $overwrite
    Returns
    Type Description
    bool
    Details
    Desc
    Wrapper function that will create a field label for every language.  
    functioncreate_field_lang_pak_contents( \the_array $old_contents,  $key,  $value,  $language,  $module ) : \string

    Parameters
    Name Type Description
    $old_contents \the_array

    array, language string, module string

    $key
    $value
    $language
    $module
    Returns
    Type Description
    \string
    Details
    Desc
    Returns the contents of the customized language pack.  
    functioncreate_include_lang_dir( ) : bool

    Returns
    Type Description
    bool
    Details
    Desc
    Creates the include language directory under the custom directory.  
    functioncreate_module_lang_dir( \module $module ) : bool

    Parameters
    Name Type Description
    $module \module

    string

    Returns
    Type Description
    bool
    Details
    Desc
    Creates the module's language directory under the custom directory.  
    functiondropdown_duplicate_check(  $dropdown_type,  $file_contents ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $file_contents
    functiondropdown_item_delete(  $dropdown_type,  $language,  $index ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $language
    $index
    functiondropdown_item_edit(  $dropdown_type,  $language,  $key,  $value ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $language
    $key
    $value
    functiondropdown_item_insert(  $dropdown_type,  $language,  $index,  $key,  $value ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $language
    $index
    $key
    $value
    functiondropdown_item_move_down(  $dropdown_type,  $language,  $index ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $language
    $index
    functiondropdown_item_move_up(  $dropdown_type,  $language,  $index ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $language
    $index
    functionhelper_dropdown_item_delete(  $dropdown_array,  $index ) : void

    Parameters
    Name Type Description
    $dropdown_array
    $index
    functionhelper_dropdown_item_insert(  $dropdown_array,  $index,  $key,  $value ) : void

    Parameters
    Name Type Description
    $dropdown_array
    $index
    $key
    $value
    functionreplace_app_string(  $name,  $value,  $file_contents ) : void

    Parameters
    Name Type Description
    $name
    $value
    $file_contents
    functionreplace_dropdown_type(  $dropdown_type,  $dropdown_array,  $file_contents ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $dropdown_array
    $file_contents
    functionreplace_or_add_app_string(  $name,  $value,  $file_contents ) : void

    Parameters
    Name Type Description
    $name
    $value
    $file_contents
    functionreplace_or_add_dropdown_type(  $dropdown_type,  $dropdown_array,  $file_contents ) : void

    Parameters
    Name Type Description
    $dropdown_type
    $dropdown_array
    $file_contents
    functionreturn_custom_app_list_strings_file_contents(  $language,  $custom_filename = '' ) : void

    Parameters
    Name Type Description
    $language
    $custom_filename
    functionsave_custom_app_list_strings( \app_list_strings $app_list_strings,  $language ) : bool

    Parameters
    Name Type Description
    $app_list_strings \app_list_strings

    array

    $language
    Returns
    Type Description
    bool
    Details
    Desc
    Saves the app_list_strings to file in the 'custom' dir.  
    functionsave_custom_app_list_strings_contents( \app_list_strings $contents,  $language,  $custom_dir_name = '' ) : bool

    Parameters
    Name Type Description
    $contents \app_list_strings

    array

    $language
    $custom_dir_name
    Returns
    Type Description
    bool
    Details
    Desc
    Saves the app_list_strings to file in the 'custom' dir.  
    Documentation was generated by DocBlox 0.18.1.