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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe UCMContent
+ Graphe d'héritage de UCMContent:

Fonctions membres publiques

 __construct (TableInterface $table=null, $alias=null, UCMType $type=null)
 
 save ($original=null, UCMType $type=null)
 
 delete ($pk, UCMType $type=null)
 
 mapData ($original, UCMType $type=null)
 
 getPrimaryKey ($typeId, $contentItemId)
 
- Fonctions membres publiques hérités de UCMBase
 __construct ($alias=null, UCMType $type=null)
 
 getType ()
 
 mapBase ($original, UCMType $type=null)
 

Champs de données

 $ucmData
 

Fonctions membres protégées

 store ($data, TableInterface $table=null, $primaryKey=null)
 
- Fonctions membres protégées hérités de UCMBase
 store ($data, TableInterface $table=null, $primaryKey=null)
 

Attributs protégés

 $table
 
- Attributs protégés hérités de UCMBase
 $type
 
 $alias
 

Description détaillée

Base class for implementing UCM

Depuis
3.1

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( TableInterface  $table = null,
  $alias = null,
UCMType  $type = null 
)

Instantiate UCMContent.

Paramètres
TableInterface$tableThe table object
string$aliasThe type alias
UCMType$typeThe type object
Depuis
3.1

Références $type, et Table\getInstance().

Documentation des fonctions membres

◆ delete()

delete (   $pk,
UCMType  $type = null 
)

Delete content from the Core Content table

Paramètres
mixed$pkThe string/array of id's to delete
UCMType$typeThe content type object
Renvoie
boolean True if success
Depuis
3.1

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

◆ getPrimaryKey()

getPrimaryKey (   $typeId,
  $contentItemId 
)

Get the value of the primary key from #__ucm_base

Paramètres
string$typeIdThe ID for the type
integer$contentItemIdValue of the primary key in the legacy or secondary table
Renvoie
integer The integer of the primary key
Depuis
3.1

Références $db.

◆ mapData()

mapData (   $original,
UCMType  $type = null 
)

Map the original content to the Core Content fields

Paramètres
array$originalThe original data array
UCMType$typeType object for this data
Renvoie
array $ucmData The mapped UCM data
Depuis
3.1

Références $field, $fields, $i, et $type.

◆ save()

save (   $original = null,
UCMType  $type = null 
)

Method to save the data

Paramètres
array$originalThe original data to be saved
UCMType$typeThe UCM Type object
Renvoie
boolean true
Depuis
3.1

Références $type.

◆ store()

store (   $data,
TableInterface  $table = null,
  $primaryKey = null 
)
protected

Store data to the appropriate table

Paramètres
array$dataData to be stored
TableInterface$tableJTable Object
boolean$primaryKeyFlag that is true for data that are using #__ucm_content as their primary table
Renvoie
boolean true on success
Depuis
3.1

Références $data, Table\getInstance(), et ContentHelper\getLanguageId().

Documentation des champs

◆ $table

$table
protected

◆ $ucmData

$ucmData

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