Class ContenthistoryHelper

Description

Categories helper.

  • since: 3.2

Located in /administrator/components/com_contenthistory/helpers/contenthistory.php (line 19)


	
			
Method Summary
 static array createObjectArray (stdClass $object)
 static stdClass decodeFields (stdClass $jsonString)
 static stdClass getFormValues (stdClass $object, JTableContenttype $typesTable)
Methods
static createObjectArray (line 30)

Method to put all field names, including nested ones, in a single array for easy lookup.

  • return: Associative array of all field names, including ones in a nested object.
  • since: 3.2
  • access: public
static array createObjectArray (stdClass $object)
  • stdClass $object: Standard class object that may contain one level of nested objects.
static decodeFields (line 59)

Method to decode JSON-encoded fields in a standard object. Used to unpack JSON strings in the content history data column.

  • return: Object with any JSON-encoded fields unpacked.
  • since: 3.2
  • access: public
static stdClass decodeFields (stdClass $jsonString)
  • stdClass $jsonString: Standard class object that may contain one or more JSON-encoded fields.
static getFormValues (line 92)

Method to get field labels for the fields in the JSON-encoded object.

First we see if we can find translatable labels for the fields in the object. We translate any we can find and return an array in the format object->name => label.

  • return: Contains two associative arrays. $formValues->labels in the format name => label (for example, 'id' => 'Article ID'). $formValues->values in the format name => value (for example, 'state' => 'Published'. This translates the text from the selected option in the form.
  • since: 3.2
  • access: public
static stdClass getFormValues (stdClass $object, JTableContenttype $typesTable)
  • stdClass $object: Standard class object in the format name->value.
  • JTableContenttype $typesTable: Table object with content history options.

Documentation generated on Tue, 19 Nov 2013 14:56:58 +0100 by phpDocumentor 1.4.3