wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.Node.php File Reference

Go to the source code of this file.

Classes

class  Node
 

Functions

 nodeCmpFunction ($a, $b)
 

Variables

const ADDCHILD_FRONT -1
 
const ADDCHILD_BACK -2
 
const SORTTYPE_ASC -1
 
const SORTTYPE_DESC -2
 
const OID -3
 
const TYPE -4
 
 $g_sortCriteria = array()
 

Function Documentation

nodeCmpFunction (   $a,
  $b 
)

Definition at line 46 of file class.Node.php.

References $g_sortCriteria, OID, SORTTYPE_ASC, SORTTYPE_DESC, WCMFException\throwEx(), and TYPE.

+ Here is the call graph for this function:

Variable Documentation

const ADDCHILD_FRONT -1

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.Node.php 1462 2014-02-04 23:52:27Z iherwig

Some constants describing the build process

Definition at line 30 of file class.Node.php.

Referenced by Node\addChild(), and NodeXMLMapper\save().

const ADDCHILD_BACK -2

Definition at line 31 of file class.Node.php.

Referenced by Node\addChild().

const SORTTYPE_ASC -1

Some constants describing the sort process

Definition at line 35 of file class.Node.php.

Referenced by nodeCmpFunction(), and Node\sort().

const SORTTYPE_DESC -2

Definition at line 36 of file class.Node.php.

Referenced by nodeCmpFunction().

const OID -3

Definition at line 37 of file class.Node.php.

Referenced by nodeCmpFunction().

const TYPE -4

Definition at line 38 of file class.Node.php.

Referenced by nodeCmpFunction().

$g_sortCriteria = array()

Compare function for sorting Nodes by a given criteria.

Parameters
a,bThe Nodes to compare.
Returns
-1, 0 or 1 whether a is less, equal or greater than b in respect of the criteria

Definition at line 45 of file class.Node.php.

Referenced by nodeCmpFunction(), and Node\sort().