You are here

static function crumbs_Container_ContainerUtil::getAllProperties in Crumbs, the Breadcrumbs suite 7.2

Initializes all lazy properties from the container and returns the array.

Use this only for debugging!

Parameters

object $container:

Return value

mixed[]

1 call to crumbs_Container_ContainerUtil::getAllProperties()
_crumbs_admin_debug_devel_data in admin/crumbs.debug.inc

File

lib/Container/ContainerUtil.php, line 15

Class

crumbs_Container_ContainerUtil

Code

static function getAllProperties($container) {
  $reflClass = new ReflectionClass($container);
  $data = array();
  foreach (self::extractProperties($reflClass
    ->getDocComment()) as $propertyName) {
    $data[$propertyName] = $container->{$propertyName};
  }
  return $data;
}