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.
Author: Ralf Lang ([email protected])
Inheritance: extends Horde_Rdo_Mapper
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_lazyRelationships array Relationships loaded on-demand
$_table string Inflector doesn't support Horde-style tables yet

Méthodes publiques

Méthode 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

create() public méthode

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
Résultat Sesha_Entity_Property The property created.

delete() public méthode

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.
Résultat integer Number of objects deleted.

Property Details

$_lazyRelationships protected_oe property

Relationships loaded on-demand
protected array $_lazyRelationships
Résultat array

$_table protected_oe property

Inflector doesn't support Horde-style tables yet
protected string $_table
Résultat string