Свойство | Тип | Описание | |
---|---|---|---|
$definition | PHPCR\NodeType\PropertyDefinitionInterface | cached instance of the property definition that defines this property | |
$isMultiple | boolean | whether this is a multivalue property | |
$length | integer | length is only used for binary property, because binary loading is delayed until explicitly requested. | |
$streams | array | All binary stream wrapper instances | |
$type | integer | the type constant from PropertyType | |
$value | mixed | The property value in suitable native format or object | |
$wrapBinaryStreams | boolean | flag to know if binary streams should be wrapped or retrieved immediately. this is a per session setting. |
Метод | Описание | |
---|---|---|
__construct ( jackalope\FactoryInterface $factory, array $data, string $path, jackalope\Session $session, |
Create a property, either from server data or locally | |
__destruct ( ) | Close all open binary stream wrapper instances on shutdown. | |
_setLength ( integer $length ) | Internally used after refresh from backend to set new length | |
_setValue ( mixed $value, integer | string $type = PropertyType::UNDEFINED, boolean $constructor = false ) | Internally used to set the value of the property without any notification of changes nor state change. | |
addValue ( $value ) | {@inheritDoc} | |
getBinary ( ) | {@inheritDoc} | |
getBoolean ( ) | {@inheritDoc} | |
getDate ( ) | {@inheritDoc} | |
getDecimal ( ) | {@inheritDoc} | |
getDefinition ( ) | {@inheritDoc} | |
getDouble ( ) | {@inheritDoc} | |
getIterator ( ) : Iterator | Provide Traversable interface: redirect to getNodes with no filter | |
getLength ( ) | {@inheritDoc} | |
getLong ( ) | {@inheritDoc} | |
getNode ( ) | {@inheritDoc} | |
getProperty ( ) | {@inheritDoc} | |
getString ( ) | {@inheritDoc} | |
getType ( ) | {@inheritDoc} | |
getValue ( ) | {@inheritDoc} | |
getValueForStorage ( ) | Get the value of this property to store in the storage backend. | |
isMultiple ( ) | {@inheritDoc} | |
remove ( ) | Also unsets internal reference in containing node | |
setModified ( ) | Tell this item that it has been modified. | |
setValue ( $value, $type = PropertyType::UNDEFINED ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
refresh ( $keepChanges, $internal = false ) | Refresh this property |
Метод | Описание | |
---|---|---|
getReferencedNodes ( string[] $ids, boolean $weak ) : |
Get all nodes for $ids, ordered by that array, with duplicates if there are duplicates in $ids. |
public __construct ( jackalope\FactoryInterface $factory, array $data, string $path, jackalope\Session $session, |
||
$factory | jackalope\FactoryInterface | the object factory |
$data | array | array with fields type (integer or string from PropertyType) and value (data for creating the property value - array for multivalue property) |
$path | string | the absolute path of this item |
$session | jackalope\Session | the session instance |
$objectManager | the objectManager instance - the caller has to take care of registering this item with the object manager | |
$new | boolean | optional: set to true to make this property aware its not yet existing on the server. defaults to false |
public __destruct ( ) |
public _setLength ( integer $length ) | ||
$length | integer | the new length of this binary |
public getIterator ( ) : Iterator | ||
Результат | Iterator | over all child nodes |
public getValueForStorage ( ) |
protected refresh ( $keepChanges, $internal = false ) |
public setModified ( ) |
public setValue ( $value, $type = PropertyType::UNDEFINED ) |
protected PropertyDefinitionInterface,PHPCR\NodeType $definition | ||
Результат | PHPCR\NodeType\PropertyDefinitionInterface |
protected bool $isMultiple | ||
Результат | boolean |
protected int $length | ||
Результат | integer |
protected array $streams | ||
Результат | array |
protected mixed $value | ||
Результат | mixed |
protected bool $wrapBinaryStreams | ||
Результат | boolean |