Back to UCMType class

Method fieldmapExpand

public mixed
fieldmapExpand
(mixed $assoc = false)
Method to expand the field mapping
Parameters
  • bool $assoc True to return an associative array.
Returns
  • mixed Array or object with field mappings. Defaults to object.
Since
  • 3.2
Class: UCMType
Project: Joomla

Method fieldmapExpand - Source code

/**
 * Method to expand the field mapping
 *
 * @param   boolean  $assoc  True to return an associative array.
 *
 * @return  mixed  Array or object with field mappings. Defaults to object.
 *
 * @since   3.2
 */
public function fieldmapExpand($assoc = false)
{
    if (!empty($this->type->field_mappings)) {
        return $this->fieldmap = json_decode($this->type->field_mappings, $assoc);
    } else {
        return false;
    }
}