Make all MODx tags safe for the output
function makeMODxSafe( $value )
Turn an array of parameters in the format [“param”] => “value” into a table
function makeParamTable( $parameters = array(), $header = "", $sort = true, $prep = true, $wordwrap = true )
Render a tab
function makeTab( $title, $content )
Sort the resource array by multiple fields Rows->Columns portion by Jon L.
function multiSort( $resource, $orderBy )
Render the noResults output
function noResults( $text, $paginate )
Paginate the documents
function paginate( $start, $stop, $total, $summarize, $tplPaginateNext, $tplPaginatePrevious, $tplPaginateNextOff, $tplPaginatePreviousOff, $tplPaginatePage, $tplPaginateCurrentPage, $paginateAlwaysShowLinks, $paginateSplitterCharacter )
Parse the required fields out of the custom placeholders
function parseCustomPlaceholders( $placeholders )
Parse out the fields required for each state
function parseDBFields( $seeThruUnpub )
Find the fields that are contained in the custom placeholders or those that are needed in other functions
function parseFields( $placeholders, $seeThruUnpub, $dateSource, $randomize )
Split up the filters into an array and add the required fields to the fields array
function parseFilters( $filter = false, $cFilters = false, $pFilters = false, $globalDelimiter, $localDelimiter )
Parse out orderBy parameter string
function parseOrderBy( $orderBy, $randomize )
Create the outut for the Info ta
function prepareBasicInfo( $ditto, $ditto_version, $IDs, $summarize, $orderBy, $start, $stop, $total )
Create the output for the Document Info tab
function prepareDocumentInfo( $resource )
Create the content of the Filters tab
function prepareFilters( $filter )
Create the content of the Prefetch tab
function preparePrefetch( $prefetch )
Create the output for the Templates tab
function prepareTemplates( $templates )
Take the templates and parse them for tempalte variables, Check to make sure they have fields, and sort the fields
function process( $template )
Convert relative urls to absolute URLs Based on script from http://wintermute.com.au/bits/2005-09/php-relative-absolute-links/
function relToAbs( $text, $base )
Remove a field to the internal field detection system
function removeField( $name, $location, $type )
Render the document output
function render( $resource, $template, $removeChunk, $dateSource, $dateFormat, $ph = array(), $phx = 1, $x = 0 )
Render the links to the debug console
function render_link( $dittoID, $ditto_base )
Render the contents of the debug console
function render_popup( $ditto, $ditto_base, $ditto_version, $ditto_params, $IDs, $fields, $summarize, $templates, $orderBy, $start, $stop, $total, $filter, $resource )
Render QE links when needed
function renderQELinks( $fields, $resource, $QEPrefix, $placeholders )
Replcae placeholders with their values
function replace( $placeholders, $tpl )
Save the debug console as a file
function save( $html, $filename )
Move the detected fields into the Ditto fields array
function setDisplayFields( $fields, $hiddenFields )
Sort the array of fields provided by type
function sortFields ( $fieldList )