Function FirePHP->encodeObject

Definitions

sources/firephp.php

  • Encodes an object including members withprotected and private visibility
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$object object No No required parameter N/A N/A The object to be encoded
$objectDepth integer No No 1 N/A N/A The current object traversal depth
$arrayDepth integer No No 1 N/A N/A The current array traversal depth
$maxDepth integer No No 1 N/A N/A The current max object or array traversal depth
$options array No No [] N/A N/A Encoding options

Returns

  • All members of the object
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Encodes an object including members withprotected and private visibility
 *
 * @param  object $object The object to be encoded
 * @param  integer $objectDepth The current object traversal depth
 * @param  integer $arrayDepth The current array traversal depth
 * @param  integer $maxDepth The current max object or array traversal depth
 * @param  array $options Encoding options
 * @return array All members of the object
 */

protected function encodeObject($object, $objectDepth = 1, $arrayDepth = 1, $maxDepth = 1, $options = [])