/sources/splurgh.php

Description
Functions
splurgh_master_build (line 40)

Get a splurghified version of the specified item.

  • return: A string of HTML that represents our splurghing (will desplurgh in the users browser)
string splurgh_master_build (string $key_name, array $map, URLPATH $url_stub, ID_TEXT $_cache_file, TIME $last_change_time, [?AUTO_LINK $first_id = NULL])
  • string $key_name: The name of what the key we want to reference is in our array of maps (e.g. 'id')
  • array $map: A row of maps for data we are splurghing; this is probably just the result of $GLOBALS['SITE_DB']->query_select
  • URLPATH $url_stub: The stub that links will be passed through
  • ID_TEXT $_cache_file: The page name we will be saving customised HTML under
  • TIME $last_change_time: The time we did our last change to the data being splurghed (so it can see if we can simply decache instead of deriving)
  • ?AUTO_LINK $first_id: The ID that is at the root of our tree (NULL: db_get_first_id)
_splurgh_do_node (line 84)

Build up the splurgh nodes recursively for given details.

  • return: A specially encoded string that represents our splurghing
string _splurgh_do_node (array $map, AUTO_LINK $node, string $chain, array &$fulltable, integer $nest)
  • array $map: A row of maps for data we are splurghing; this is probably just the result of $GLOBALS['SITE_DB']->query_select
  • AUTO_LINK $node: The node we are examining
  • string $chain: The chain we have built up during our recursion
  • array &$fulltable: Nodes marked as done (so we don't repeat them in other hierarchy positions if it they get repeated)
  • integer $nest: The level of recursion

Documentation generated on Sun, 02 Jan 2011 23:25:21 +0000 by phpDocumentor 1.4.3