Moodle  2.2.1
http://www.collinsharper.com
Node Class Reference
Inheritance diagram for Node:
Collaboration diagram for Node:

Public Member Functions

 __construct ($session, $store, $id)
 setPropertyValues ($properties)
 updateContent ($property, $mimetype, $encoding="UTF-8", $content=null)
 hasAspect ($aspect)
 addAspect ($aspect, $properties=null)
 removeAspect ($aspect)
 createChild ($type, $associationType, $associationName)
 addChild ($node, $associationType, $associationName)
 removeChild ($childAssociation)
 addAssociation ($to, $associationType)
 removeAssociation ($association)
 createVersion ($description=null, $major=false)
 __get ($name)
 __set ($name, $value)
 __toString ()
 __toArray ()
 getSession ()
 getStore ()
 getId ()
 getIsNewNode ()
 getType ()
 getAspects ()
 getProperties ()
 setProperties ($properties)
 getVersionHistory ()
 getChildren ()
 getParents ()
 getPrimaryParent ()
 getAssociations ()
 onBeforeSave (&$statements)
 onAfterSave ($idMap)

Static Public Member Functions

static createFromWebServiceData ($session, $webServiceNode)
static __toNodeRef ($store, $id)

Detailed Description

Definition at line 35 of file Node.php.


Constructor & Destructor Documentation

__construct ( session,
store,
id 
)

Constructor

Definition at line 60 of file Node.php.


Member Function Documentation

__get ( name)

Reimplemented from BaseObject.

Definition at line 257 of file Node.php.

__set ( name,
value 
)

Reimplemented from BaseObject.

Definition at line 278 of file Node.php.

__toArray ( )

Definition at line 311 of file Node.php.

Here is the caller graph for this function:

static __toNodeRef ( store,
id 
) [static]

Definition at line 306 of file Node.php.

Here is the caller graph for this function:

toString method. Returns node as a node reference style string.

Definition at line 301 of file Node.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addAspect ( aspect,
properties = null 
)

Definition at line 120 of file Node.php.

Here is the call graph for this function:

addAssociation ( to,
associationType 
)

Definition at line 199 of file Node.php.

addChild ( node,
associationType,
associationName 
)

Definition at line 185 of file Node.php.

Here is the call graph for this function:

createChild ( type,
associationType,
associationName 
)

Definition at line 155 of file Node.php.

Here is the call graph for this function:

static createFromWebServiceData ( session,
webServiceNode 
) [static]

Util method to create a node from a web service node structure.

Definition at line 74 of file Node.php.

Here is the caller graph for this function:

createVersion ( description = null,
major = false 
)

Definition at line 212 of file Node.php.

Here is the call graph for this function:

Definition at line 343 of file Node.php.

Definition at line 402 of file Node.php.

Definition at line 375 of file Node.php.

getId ( )

Definition at line 327 of file Node.php.

Definition at line 332 of file Node.php.

Definition at line 384 of file Node.php.

Definition at line 393 of file Node.php.

Definition at line 349 of file Node.php.

Definition at line 317 of file Node.php.

getStore ( )

Definition at line 322 of file Node.php.

getType ( )

Definition at line 337 of file Node.php.

Accessor for the versionHistory property.

Returns:
VersionHistory the versionHistory for the node, null is none

Definition at line 366 of file Node.php.

hasAspect ( aspect)

Definition at line 113 of file Node.php.

onAfterSave ( idMap)

Definition at line 741 of file Node.php.

Here is the call graph for this function:

onBeforeSave ( &$  statements)

Definition at line 555 of file Node.php.

removeAspect ( aspect)

Definition at line 142 of file Node.php.

Here is the call graph for this function:

removeAssociation ( association)

Definition at line 207 of file Node.php.

removeChild ( childAssociation)

Definition at line 194 of file Node.php.

setProperties ( properties)

Definition at line 355 of file Node.php.

setPropertyValues ( properties)

Definition at line 87 of file Node.php.

updateContent ( property,
mimetype,
encoding = "UTF-8",
content = null 
)

Definition at line 100 of file Node.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations