[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/UCM/ -> UCMType.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 249 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UCMType:: (7 methods):
  __construct()
  getType()
  getTypeByAlias()
  getTypeByTable()
  getTypeId()
  fieldmapExpand()
  __get()


Class: UCMType  - X-Ref

UCM Class for handling content types

__construct($alias = null, DatabaseDriver $database = null, AbstractApplication $application = null)   X-Ref
Class constructor

param: string               $alias        The alias for the item
param: DatabaseDriver       $database     The database object
param: AbstractApplication  $application  The application object

getType($pk = null)   X-Ref
Get the Content Type

param: integer  $pk  The primary key of the alias type
return: object  The UCM Type data

getTypeByAlias($typeAlias = null)   X-Ref
Get the Content Type from the alias

param: string  $typeAlias  The alias for the type
return: object  The UCM Type data

getTypeByTable($tableName)   X-Ref
Get the Content Type from the table class name

param: string  $tableName  The table for the type
return: mixed  The UCM Type data if found, false if no match is found

getTypeId($alias = null)   X-Ref
Retrieves the UCM type ID

param: string  $alias  The string of the type alias
return: mixed  The ID of the requested type or false if type is not found

fieldmapExpand($assoc = false)   X-Ref
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.

__get($ucmField)   X-Ref
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



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer