Back to Joomla project (class list)

Class UCMContent - list of methods

Base class for implementing UCM

Extends

Package: Joomla\CMS\UCM
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/UCM/UCMContent.php
Project: Joomla

Method Summary

public
(\Joomla\CMS\Table\TableInterface $table = null, mixed $alias = null, \Joomla\CMS\UCM\UCMType $type = null)

Instantiate UCMContent.
Parameters
  • \Joomla\CMS\Table\TableInterface $table The table object
  • string $alias The type alias
  • \Joomla\CMS\UCM\UCMType $type The type object
Since
  • 3.1
Show source code of this method: __construct Source Code

public bool
(mixed $original = null, \Joomla\CMS\UCM\UCMType $type = null)

Method to save the data
Parameters
  • array $original The original data to be saved
  • \Joomla\CMS\UCM\UCMType $type The UCM Type object
Returns
  • bool true
Since
  • 3.1
Show source code of this method: save Source Code

public bool
(mixed $pk, \Joomla\CMS\UCM\UCMType $type = null)

Delete content from the Core Content table
Parameters
  • mixed $pk Array or comma-separated string of ids to delete
  • \Joomla\CMS\UCM\UCMType $type The content type object
Returns
  • bool True if success
Since
  • 3.1
Show source code of this method: delete Source Code

public array
(mixed $original, \Joomla\CMS\UCM\UCMType $type = null)

Map the original content to the Core Content fields
Parameters
  • array $original The original data array
  • \Joomla\CMS\UCM\UCMType $type Type object for this data
Returns
  • array $ucmData The mapped UCM data
Since
  • 3.1
Show source code of this method: mapData Source Code

protected bool
(mixed $data, \Joomla\CMS\Table\TableInterface $table = null, mixed $primaryKey = null)

Store data to the appropriate table
Parameters
  • array $data Data to be stored
  • \Joomla\CMS\Table\TableInterface $table Table Object
  • bool $primaryKey Flag that is true for data that are using #__ucm_content as their primary table
Returns
  • bool true on success
Since
  • 3.1
Show source code of this method: store Source Code

public int
(mixed $typeId, mixed $contentItemId)

Get the value of the primary key from #__ucm_base
Parameters
  • int $typeId The ID for the type
  • int $contentItemId Value of the primary key in the legacy or secondary table
Returns
  • int The integer of the primary key
Since
  • 3.1
Show source code of this method: getPrimaryKey Source Code

Properties Summary

protected \Joomla\CMS\Table\Table
$table
The related table object
Since
  • 3.1
public array
$ucmData
The UCM data array
Since
  • 3.1

Tags Summary

Since
3.1