|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.75 GB of 70.42 GB (35.15%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
guitar.1/
libraries/
joomla/
base/
- drwxr-xr-x
|
Viewing file: node.php (2.28 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php /** * @package Joomla.Platform * @subpackage Base * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */
defined('JPATH_PLATFORM') or die;
/** * Tree Node Class. * * @package Joomla.Platform * @subpackage Base * @since 11.1 */ class JNode extends JObject { /** * Parent node * @var object * * @since 11.1 */ protected $_parent = null;
/** * Array of Children * * @var array * @since 11.1 */ protected $_children = array();
/** * Constructor * * @since 11.1 */ public function __construct() { return true; }
/** * Add child to this node * * If the child already has a parent, the link is unset * * @param JNode &$child The child to be added * * @return void * * @since 11.1 */ public function addChild(&$child) { if ($child instanceof Jnode) { $child->setParent($this); } }
/** * Set the parent of a this node * * If the node already has a parent, the link is unset * * @param mixed &$parent The JNode for parent to be set or null * * @return void * * @since 11.1 */ public function setParent(&$parent) { if ($parent instanceof JNode || is_null($parent)) { $hash = spl_object_hash($this); if (!is_null($this->_parent)) { unset($this->_parent->children[$hash]); } if (!is_null($parent)) { $parent->_children[$hash] = & $this; } $this->_parent = & $parent; } }
/** * Get the children of this node * * @return array The children * * @since 11.1 */ public function &getChildren() { return $this->_children; }
/** * Get the parent of this node * * @return mixed JNode object with the parent or null for no parent * * @since 11.1 */ public function &getParent() { return $this->_parent; }
/** * Test if this node has children * * @return boolean True if there are children * * @since 11.1 */ public function hasChildren() { return (bool) count($this->_children); }
/** * Test if this node has a parent * * @return boolean True if there is a parent * * @since 11.1 */ public function hasParent() { return $this->getParent() != null; } }
|