NodeUtil.php
33 * @param $otherRole The role of the type at the other end (maybe null, if only type shoudl match)
60 * @param $otherRole The role of the type at the other end (maybe null, if only type shoudl match)
91 $otherTypeFq = $otherType != null ? $persistenceFacade->getFullyQualifiedType($otherType) : null;
92 if (($otherRole != null && $nextRole == $otherRole) || ($otherType != null && $nextType == $otherTypeFq)) {
101 self::getConnectionsImpl($nextType, $otherRole, $otherType, $hierarchyType, $result, $nextCurrentPath);
145 * If the 'display_value' is an array ('|' separated strings) the pieces will be put together with ' - '.
147 * Example: 'name|text' shows the name of the Node together with the content of the text attribute
149 * @param $language The language if values should be localized. Optional, default is Localization::getDefaultLanguage()
150 * @note The display type is configured via the display_type property of a value. It describes how the value should be displayed.
163 * @param $language The language if values should be localized. Optional, default is Localization::getDefaultLanguage()
272 $value = ValueListProvider::translateValue($value, $object->getValueProperty($valueName, 'input_type'), true, null, $language);
static getDisplayValues(Node $node, $language=null)
Does the same as NodeUtil::getDisplayValue but returns the display value as associative array...
Definition: NodeUtil.php:166
static getRelationQueryCondition($node, $otherRole)
Get the query condition used to select all related Nodes of a given role.
Definition: NodeUtil.php:117
getProperty($name)
Definition: DefaultPersistentObject.php:468
static translateValues(&$nodes, $language=null)
Translate all list values in a list of Nodes.
Definition: NodeUtil.php:253
NodeValueIterator is used to iterate over all persistent values of a Node (not including relations)...
Definition: NodeValueIterator.php:43
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:104
static translateValue($value, $inputType, $language=null)
Translate a value with use of it's assoziated input type e.g get the location string from a location ...
Definition: ValueListProvider.php:78
static asValue($operator, $value)
Factory method for constructing a Critera that may be used as value on a PersistentObject's attribute...
Definition: Criteria.php:58
getOID()
Definition: DefaultPersistentObject.php:123
static getInstance($name, $dynamicConfiguration=array())
Definition: ObjectFactory.php:39
static removeNonDisplayValues(Node $node)
Remove all values from a Node that are not a display value.
Definition: NodeUtil.php:281
getObjectTemplate($type, $alias=null, $combineOperator=Criteria::OPERATOR_AND)
Get an object template for a given type.
Definition: ObjectQuery.php:162
static getConnectionsImpl($type, $otherRole, $otherType, $hierarchyType, array &$result=array(), array $currentPath=array())
Get the relations that connect a type to another type.
Definition: NodeUtil.php:67
setValue($name, $value, $forceSet=false, $trackChange=true)
Set the value of a named item if it exists.
static makeNodeUrlsRelative(Node $node, $baseUrl, $recursive=true)
Make all urls matching a given base url in a Node relative.
Definition: NodeUtil.php:207
static removeNonPkValues(Node $node)
Remove all values from a Node that are not a primary key value.
Definition: NodeUtil.php:296
static getConnections($type, $otherRole, $otherType, $hierarchyType='all')
Get the shortest paths that connect a type to another type.
Definition: NodeUtil.php:39
getValueProperty($name, $property)
Get the value of one property of a named item.
static getDisplayValue(Node $node, $language=null)
Get the display value for a Node defined by the 'display_value' property.
Definition: NodeUtil.php:156
PathDescription describes a path between two types.
Definition: PathDescription.php:18
getMapper()
Definition: DefaultPersistentObject.php:113
removeValue($name)
Definition: DefaultPersistentObject.php:381
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24