Back to ContentType class

Method fieldmapExpand

public mixed
fieldmapExpand
(mixed $assoc = true)
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.1
Class: ContentType
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.1
 */
public function fieldmapExpand($assoc = true)
{
    return $this->fieldmap = json_decode($this->fieldmappings, $assoc);
}