PHP Class Sesha_Entity_PropertyMapper, horde
Copyright 2012-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
Mostrar archivo
Open project: horde/horde
Protected Properties
Public Methods
Method |
Description |
|
create ( array $property ) : Sesha_Entity_Property |
Creates a property definition in the backend. |
|
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. |
|
Method Details
This wraps folding of the 'parameters' structure
public create ( array $property ) : Sesha_Entity_Property |
$property |
array |
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 |
return |
Sesha_Entity_Property |
The property created. |
This also cleans up attachment attributes of this property type and category links
public delete ( string | Sesha_Entity_Property | Horde_Rdo_Query $object ) : integer |
$object |
string | Sesha_Entity_Property | Horde_Rdo_Query |
The Rdo object,
Horde_Rdo_Query, or unique id to delete. |
return |
integer |
Number of objects deleted. |
Property Details
$_lazyRelationships protected_oe property
Relationships loaded on-demand
protected array $_lazyRelationships |
return |
array |
|
$_table protected_oe property
Inflector doesn't support Horde-style tables yet
protected string $_table |
return |
string |
|