Docs For Class EasyRdf_Utils

## Class EasyRdf_Utils

Description

Class containing static utility functions

- copyright: Copyright (c) 2009-2010 Nicholas J Humfrey
- license: http://www.opensource.org/licenses/bsd-license.php

Located in /EasyRdf/Utils.php (line 47)

Method Summary
static string camelise (string $str)
static string dumpLiteralValue ( $literal, [bool $html = true], [string $color = 'black'], mixed $resource)
static string dumpResourceValue (mixed $resource, [bool $html = true], [string $color = 'blue'])
static bool is_associative_array (mixed $param)
static string resolveUriReference (string $baseUri, string $referenceUri)
Methods
static method camelise (line 62)

Convert a string into CamelCase

A capital letter is inserted for any non-letter (including userscore). For example: 'hello world' becomes HelloWorld 'rss-tag-soup' becomes RssTagSoup 'FOO//BAR' becomes FooBar

- return: The input string coverteted to CamelCase
- access: public

static string camelise (string $str)

- string $str: The input string

static method dumpLiteralValue (line 204)

Return pretty-print view of a literal

This method is mainly intended for internal use and is used by EasyRdf_Graph and EasyRdf_Sparql_Result to format a literal for display.

- access: public

static string dumpLiteralValue ( $literal, [bool $html = true], [string $color = 'black'], mixed $resource)

- mixed $resource: An EasyRdf_Literal object or an associative array
- bool $html: Set to true to format the dump using HTML
- string $color: The colour of the text
- $literal

static method dumpResourceValue (line 163)

Return pretty-print view of a resource URI

This method is mainly intended for internal use and is used by EasyRdf_Graph and EasyRdf_Sparql_Result to format a resource for display.

- access: public

static string dumpResourceValue (mixed $resource, [bool $html = true], [string $color = 'blue'])

- mixed $resource: An EasyRdf_Resource object or an associative array
- bool $html: Set to true to format the dump using HTML
- string $color: The colour of the text

static method is_associative_array (line 79)

Check if something is an associative array

Note: this method only checks the key of the first value in the array.

- return: true if the variable is an associative array
- access: public

static bool is_associative_array (mixed $param)

- mixed $param: The variable to check

static method resolveUriReference (line 101)

Resolve a URI to a base URI.

- return: The newly resolved URI as a string.
- access: public

static string resolveUriReference (string $baseUri, string $referenceUri)

- string $baseUri: The base URI
- string $referenceUri: The URI to resolve

Documentation generated on Wed, 20 Jul 2011 19:54:05 +0100 by phpDocumentor 1.4.3