/[cvs]/nfo/php/libs/net.php.pear/Tree/Memory.php
ViewVC logotype

Diff of /nfo/php/libs/net.php.pear/Tree/Memory.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Thu Feb 27 16:49:56 2003 UTC revision 1.2 by joko, Tue May 13 09:38:58 2003 UTC
# Line 312  class Tree_Memory extends Tree_Common Line 312  class Tree_Memory extends Tree_Common
312                  // most if checks in this foreach are for the following reason, if not stated otherwise:                  // most if checks in this foreach are for the following reason, if not stated otherwise:
313                  // dont make an data[''] or data[0] since this was not read from the DB, because id is autoincrement and starts at 1                  // dont make an data[''] or data[0] since this was not read from the DB, because id is autoincrement and starts at 1
314                  // and also in an xml tree there can not be an element </> , i hope :-)                  // and also in an xml tree there can not be an element </> , i hope :-)
315                  if( $value['parentId'] )            // see comment above                  if( isset($value['parentId']) )            // see comment above
316                  {                  {
317                      $this->data[$key]['parent']    = &$this->data[ $value['parentId'] ];                      $this->data[$key]['parent']    = &$this->data[ $value['parentId'] ];
318                      // the parent has an extra array which contains a reference to all it's children, set it here                      // the parent has an extra array which contains a reference to all it's children, set it here

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed