Class MobileOKPowderFactory

Description

The mobileOK POWDER factory can be used to generate a machine-readable POWDER document in XML that claims that a set of URIs was checked by the W3C mobileOK Checker and conforms to the mobileOK specification.

Located in /common/powder/powder.php (line 28)


	
			
Method Summary
string generatePowderDocument (string $uri)
string generatePowderFile (array(string) $resources, string $powderFile)
Methods
generatePowderDocument (line 73)

Returns the POWDER document that may be used to claim that the given set of resources were checked by the W3C mobileOK Checker and are mobileOK.

  • return: The resulting POWDER XML document as a string.
  • access: public
string generatePowderDocument (string $uri)
  • string $uri: Address of the Web site for which mobileOK-ness should be claimed. The address must be a URI.
generatePowderFile (line 45)

Creates the POWDER file that may be used to claim that the given set of resources were checked by the W3C mobileOK Checker and are mobileOK.

The POWDER file is not overwritten if it already exists.

  • return: The path to the resulting POWDER XML file, NULL when the file could not generated.
  • access: public
string generatePowderFile (array(string) $resources, string $powderFile)
  • array(string) $resources: The list of resources for which mobileOK conformance should be claimed.
  • string $powderFile: The full path to the file to generate

Documentation generated on Tue, 17 Nov 2009 19:00:39 +0100 by phpDocumentor 1.4.2