public function getLength($registry = null)
	{
		if ($registry == null) {
			$registry = $this->default;
		}
		if (is_string($registry) && $this->registryExists($registry)) {
			return count($this->data[self::REGISTRY][$registry]);
		}
		return 0;
	}
public function getLength($registry = null)
	{
		if ($registry == null) {
			$registry = $this->default;
		}
		if (is_string($registry) && $this->registryExists($registry)) {
			return count($this->data[self::REGISTRY][$registry]);
		}
		return 0;
	}
public function getLength ( $ registry = null ) { if ( $ registry == null ) { $ registry = $ this -> default ; } if ( is_string ( $ registry ) && $ this -> registryExists ( $ registry ) ) { return count ( $ this -> data [ self :: REGISTRY ] [ $ registry ] ) ; } return 0 ; }
Retrieves the number of keys in registry

@param string $registry the registry name

@return int the data length
Retrieves the number of keys in registry