[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/UCM/ -> UCMContent.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: 233 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UCMContent:: (6 methods):
  __construct()
  save()
  delete()
  mapData()
  store()
  getPrimaryKey()


Class: UCMContent  - X-Ref

Base class for implementing UCM

__construct(TableInterface $table = null, $alias = null, UCMType $type = null)   X-Ref
Instantiate UCMContent.

param: TableInterface  $table  The table object
param: string          $alias  The type alias
param: UCMType         $type   The type object

save($original = null, UCMType $type = null)   X-Ref
Method to save the data

param: array    $original  The original data to be saved
param: UCMType  $type      The UCM Type object
return: boolean  true

delete($pk, UCMType $type = null)   X-Ref
Delete content from the Core Content table

param: mixed    $pk    Array or comma-separated string of ids to delete
param: UCMType  $type  The content type object
return: boolean  True if success

mapData($original, UCMType $type = null)   X-Ref
Map the original content to the Core Content fields

param: array    $original  The original data array
param: UCMType  $type      Type object for this data
return: array  $ucmData  The mapped UCM data

store($data, TableInterface $table = null, $primaryKey = null)   X-Ref
Store data to the appropriate table

param: array           $data        Data to be stored
param: TableInterface  $table       Table Object
param: boolean         $primaryKey  Flag that is true for data that are using #__ucm_content as their primary table
return: boolean  true on success

getPrimaryKey($typeId, $contentItemId)   X-Ref
Get the value of the primary key from #__ucm_base

param: integer  $typeId         The ID for the type
param: integer  $contentItemId  Value of the primary key in the legacy or secondary table
return: integer  The integer of the primary key



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