Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe UCMType
+ Graphe d'héritage de UCMType:

Fonctions membres publiques

 __construct ($alias=null, \JDatabaseDriver $database=null, BaseApplication $application=null)
 
 getType ($pk=null)
 
 getTypeByAlias ($typeAlias=null)
 
 getTypeByTable ($tableName)
 
 getTypeId ($alias=null)
 
 fieldmapExpand ($assoc=false)
 
 __get ($ucmField)
 

Champs de données

 $type
 

Attributs protégés

 $db
 
 $alias
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $alias = null,
\JDatabaseDriver  $database = null,
BaseApplication  $application = null 
)

Class constructor

Paramètres
string$aliasThe alias for the item
\JDatabaseDriver$databaseThe database object
BaseApplication$applicationThe application object
Depuis
3.1

Références $app.

Documentation des fonctions membres

◆ __get()

__get (   $ucmField)

Magic method to get the name of the field mapped to a ucm field (core_something).

Paramètres
string$ucmFieldThe name of the field in JTableCorecontent
Renvoie
string The name mapped to the $ucmField for a given content type
Depuis
3.2

Références null.

◆ fieldmapExpand()

fieldmapExpand (   $assoc = false)

Method to expand the field mapping

Paramètres
boolean$assocTrue to return an associative array.
Renvoie
mixed Array or object with field mappings. Defaults to object.
Depuis
3.2

Références $assoc.

◆ getType()

getType (   $pk = null)

Get the Content Type

Paramètres
integer$pkThe primary key of the alias type
Renvoie
object The UCM Type data
Depuis
3.1

Références $query.

Référencé par OrderingField\getQuery().

◆ getTypeByAlias()

getTypeByAlias (   $typeAlias = null)

Get the Content Type from the alias

Paramètres
string$typeAliasThe alias for the type
Renvoie
object The UCM Type data
Depuis
3.2

Références $query.

◆ getTypeByTable()

getTypeByTable (   $tableName)

Get the Content Type from the table class name

Paramètres
string$tableNameThe table for the type
Renvoie
mixed The UCM Type data if found, false if no match is found
Depuis
3.2

Références $query, et $type.

◆ getTypeId()

getTypeId (   $alias = null)

Retrieves the UCM type ID

Paramètres
string$aliasThe string of the type alias
Renvoie
mixed The ID of the requested type or false if type is not found
Depuis
3.1

Références $id, et $query.

Documentation des champs

◆ $alias

$alias
protected

◆ $db

$db
protected

◆ $type

$type

La documentation de cette classe a été générée à partir du fichier suivant :