\ContenthistoryHelper
Categories helper.
Synopsis
class ContenthistoryHelper
{
- // methods
- public static array createObjectArray()
- public static stdClass decodeFields()
- public static stdClass getFormValues()
- public static mixed getFormFile()
- public static mixed getLookupValue()
- public static stdClass hideFields()
- public static void loadLanguageFiles()
- public static stdClass mergeLabels()
- public static stdClass prepareData()
- public static stdClass processLookupFields()
Methods
public
- createObjectArray() — Method to put all field names, including nested ones, in a single array for easy lookup.
- decodeFields() — Method to decode JSON-encoded fields in a standard object. Used to unpack JSON strings in the content history data column.
- getFormFile() — Method to get the XML form file for this component. Used to get translated field names for history preview.
- getFormValues() — Method to get field labels for the fields in the JSON-encoded object.
- getLookupValue() — Method to query the database using values from lookup objects.
- hideFields() — Method to remove fields from the object based on values entered in the #__content_types table.
- loadLanguageFiles() — Method to load the language files for the component whose history is being viewed.
- mergeLabels() — Method to create object to pass to the layout. Format is as follows: field is std object with name, value.
- prepareData() — Method to prepare the object for the preview and compare views.
- processLookupFields() — Method to process any lookup values found in the content_history_options column for this table.