private function convertExpandKeysInObjects($expandKeys, $object)
	{
		// only hanlde objects
		if (!is_object($object))
		{
			return $object;
		}

		// spin over each key replacing the date with new format
		foreach (array_keys(get_object_vars($object)) as $key)
		{
			if (array_key_exists($key, $expandKeys))
			{
				$func = $expandKeys[$key] . 'Expander';
				if (method_exists($this, $func))
				{
					$object->$key = $this->$func($object->$key);
				}
			}
		}

		// return object
		return $object;
	}
private function convertExpandKeysInObjects($expandKeys, $object)
	{
		// only hanlde objects
		if (!is_object($object))
		{
			return $object;
		}

		// spin over each key replacing the date with new format
		foreach (array_keys(get_object_vars($object)) as $key)
		{
			if (array_key_exists($key, $expandKeys))
			{
				$func = $expandKeys[$key] . 'Expander';
				if (method_exists($this, $func))
				{
					$object->$key = $this->$func($object->$key);
				}
			}
		}

		// return object
		return $object;
	}
private function convertExpandKeysInObjects ( $ expandKeys , $ object ) { // only hanlde objects if ( ! is_object ( $ object ) ) { return $ object ; } // spin over each key replacing the date with new format foreach ( array_keys ( get_object_vars ( $ object ) ) as $ key ) { if ( array_key_exists ( $ key , $ expandKeys ) ) { $ func = $ expandKeys [ $ key ] . 'Expander' ; if ( method_exists ( $ this , $ func ) ) { $ object -> $ key = $ this -> $ func ( $ object -> $ key ) ; } } } // return object return $ object ; }
Convert keys in object

@param   array  $expandKeys
@param   mixed  $object
@return  object
Convert keys in object