ContenthistoryHelper::getFormValues
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.
Signature
public function getFormValues(stdClass
$object,
JTableContenttype
$typesTable )
Parameters
-
$object
- Standard class object in the format name->value.
-
$typesTable
- Table object with content history options.
Returns
- stdClass
- 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.