PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TSqlMapObjectCollectionTree

TSQLMapObjectCollectionTree class.

Maps object collection graphs as trees. Nodes in the collection can be TSqlMapObjectCollectionTree::add() using parent relationships. The object collections can be build using the TSqlMapObjectCollectionTree::collect() method.

TComponent
Extended by TSqlMapObjectCollectionTree
Package: System\Data\SqlMap\Statements
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/Statements/TMappedStatement.php
Methods summary
public boolean
# isEmpty( )

Returns

boolean
true if the graph is empty
public
# add( string $parent, string $node, mixed $object = '' )

Add a new node to the object tree graph.

Add a new node to the object tree graph.

Parameters

$parent
string
parent node id
$node
string
new node id
$object
mixed
node value
protected boolean
# addNode( array & $childs, string $parent, string $node )

Find the parent node and add the new node as its child.

Find the parent node and add the new node as its child.

Parameters

$childs
array
list of nodes to check
$parent
string
parent node id
$node
string
new node id

Returns

boolean
true if parent node is found.
public array
# collect( )

Returns

array
object collection
protected boolean
# hasChildren( array & $nodes )

Parameters

$nodes
array
list of nodes to check

Returns

boolean
true if all nodes are leaf nodes, false otherwise
protected
# collectChildren( string $parent, array & $nodes )

Visit all the child nodes and collect them by removing.

Visit all the child nodes and collect them by removing.

Parameters

$parent
string
parent node id
$nodes
array
list of child nodes.
protected
# onChildNodesVisited( string $parent, array $nodes )

Set the object properties for all the child nodes visited.

Set the object properties for all the child nodes visited.

Parameters

$parent
string
parent node id
$nodes
array
list of child nodes visited.
protected array
# getCollection( )

Returns

array
object collection.
public
# __sleep( )

Returns an array with the names of all variables of that object that should be serialized. Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization.

Returns an array with the names of all variables of that object that should be serialized. Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization.

Overrides

TComponent::__sleep()
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO