Back to UCMType class

Method __get

public string
__get
(mixed $ucmField)
Magic method to get the name of the field mapped to a ucm field (core_something).
Parameters
  • string $ucmField The name of the field in JTableCorecontent
Returns
  • string The name mapped to the $ucmField for a given content type
Since
  • 3.2
Class: UCMType
Project: Joomla

Method __get - Source code

/**
 * Magic method to get the name of the field mapped to a ucm field (core_something).
 *
 * @param   string  $ucmField  The name of the field in JTableCorecontent
 *
 * @return  string  The name mapped to the $ucmField for a given content type
 *
 * @since   3.2
 */
public function __get($ucmField)
{
    if (!isset($this->fieldmap)) {
        $this->fieldmapExpand(false);
    }
    return $this->fieldmap->common->{$ucmField} ?? null;
}