lib/Opauth/OpauthStrategy.php
public static function recursiveGetObjectVars($obj) {
		$arr = array();
		$_arr = is_object($obj) ? get_object_vars($obj) : $obj;

		foreach ($_arr as $key => $val) {
			$val = (is_array($val) || is_object($val)) ? self::recursiveGetObjectVars($val) : $val;

			// Transform boolean into 1 or 0 to make it safe across all Opauth HTTP transports
			if (is_bool($val)) $val = ($val) ? 1 : 0;

			$arr[$key] = $val;
		}

		return $arr;
	}
public static function recursiveGetObjectVars($obj) {
		$arr = array();
		$_arr = is_object($obj) ? get_object_vars($obj) : $obj;

		foreach ($_arr as $key => $val) {
			$val = (is_array($val) || is_object($val)) ? self::recursiveGetObjectVars($val) : $val;

			// Transform boolean into 1 or 0 to make it safe across all Opauth HTTP transports
			if (is_bool($val)) $val = ($val) ? 1 : 0;

			$arr[$key] = $val;
		}

		return $arr;
	}
public static function recursiveGetObjectVars ( $ obj ) { $ arr = array ( ) ; $ _arr = is_object ( $ obj ) ? get_object_vars ( $ obj ) : $ obj ; foreach ( $ _arr as $ key => $ val ) { $ val = ( is_array ( $ val ) || is_object ( $ val ) ) ? self :: recursiveGetObjectVars ( $ val ) : $ val ; // Transform boolean into 1 or 0 to make it safe across all Opauth HTTP transports if ( is_bool ( $ val ) ) $ val = ( $ val ) ? 1 : 0 ; $ arr [ $ key ] = $ val ; } return $ arr ; }
Recursively converts object into array
Basically get_object_vars, but recursive.

@param mixed $obj Object
@return array Array of object properties
Recursively converts object into array Basically get_object_vars but recursive .