public function getChildren ($class, $recursive = FALSE, $index = FALSE, $key = FALSE, $params = array ())
	{
		
		// Get children
		
		$children	= self::_getChildren ($class, $this->iget (self::$pk), $recursive, $key, $params);
		
		// If we want the indexes
		
		if ($index)
		{
			$children	= static::_getChildrenIndex ($children);
		}
		
		return $children;
		
	}
public function getChildren ($class, $recursive = FALSE, $index = FALSE, $key = FALSE, $params = array ())
	{
		
		// Get children
		
		$children	= self::_getChildren ($class, $this->iget (self::$pk), $recursive, $key, $params);
		
		// If we want the indexes
		
		if ($index)
		{
			$children	= static::_getChildrenIndex ($children);
		}
		
		return $children;
		
	}
public function getChildren ( $ class , $ recursive = FALSE , $ index = FALSE , $ key = FALSE , $ params = array ( ) ) { // Get children $ children = self :: _getChildren ( $ class , $ this -> iget ( self :: $ pk ) , $ recursive , $ key , $ params ) ; // If we want the indexes if ( $ index ) { $ children = static :: _getChildrenIndex ( $ children ) ; } return $ children ; }
Return child objects matching class type
@param string $class Child class type
@param boolean $recursive Whether to load childrens children.
This will create an object attribute called 'children' on all objects
@param boolean $index Return indexed child array rather than object array
@param string $key Attribute to use as array key
@param array $params Query parameter array
@return array|boolean
Return child objects matching class type