\Sesha_Entity_PropertyMapper

The Sesha_Entity_PropertyMapper class contains all functions related to handling property mapping in Sesha.

Copyright 2012-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Summary

Methods
Properties
Constants
create()
delete()
No public properties found
No constants found
No protected methods found
$_table
$_lazyRelationships
N/A
No private methods found
No private properties found
N/A

Properties

$_table

$_table : string

Inflector doesn't support Horde-style tables yet

Type

string

$_lazyRelationships

$_lazyRelationships : array

Relationships loaded on-demand

Type

array

Methods

create()

create(array  $property) : \Sesha_Entity_Property

Creates a property definition in the backend.

This wraps folding of the 'parameters' structure

Parameters

array $property

An array with the property definition. Keys may be property_id Integer (autogenerated) property string The property name datatype string The property type parameters mixed Type definition parameters will be serialized unit string The unit to display description string priority integer

Returns

\Sesha_Entity_Property

The property created.

delete()

delete(string|\Sesha_Entity_Property|\Horde_Rdo_Query  $object) : integer

Deletes a property definition from the backend. $object can be either a primary key, an Rdo_Query object, or a Sesha_Entity_Property object.

This also cleans up attachment attributes of this property type and category links

Parameters

string|\Sesha_Entity_Property|\Horde_Rdo_Query $object

The Rdo object, Horde_Rdo_Query, or unique id to delete.

Returns

integer —

Number of objects deleted.