PHP Класс 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.
Показать файл
Открыть проект
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
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. |
|
Описание методов
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 |
Результат |
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. |
Результат |
integer |
Number of objects deleted. |
Описание свойств
$_lazyRelationships защищенное свойство
Relationships loaded on-demand
protected array $_lazyRelationships |
Результат |
array |
|
$_table защищенное свойство
Inflector doesn't support Horde-style tables yet
protected string $_table |
Результат |
string |
|