Tribe__PUE__Utility::from_json( string $json )

Create a new instance of Tribe__PUE__Utility from its JSON-encoded representation.


Parameters

$json

(string) (Required)


Top ↑

Return

(Tribe__PUE__Utility)


Top ↑

Source

File: src/Tribe/PUE/Utility.php

		public static function from_json( $json ) {
			//Since update-related information is simply a subset of the full plugin info,
			//we can parse the update JSON as if it was a plugin info string, then copy over
			//the parts that we care about.
			$pluginInfo = Tribe__PUE__Plugin_Info::from_json( $json );
			if ( $pluginInfo != null ) {
				return self::from_plugin_info( $pluginInfo );
			} else {
				return null;
			}
		}