IP.Board  3.3.0
coreVariables Class Reference

Public Member Functions

 fetchBitwise ()
 fetchCaches ()
 fetchRedirects ()
 fetchTemplates ()

Member Function Documentation

Fetch bitwise mappings You can add to any of these arrays, but you cannot remove keys or re-order them. BAD THINGS WILL HAPPEN

public

Returns:
array Bitwise mappings

Fetch the caches array

public

Returns:
array Caches

Fetch the redirect mapping for short-hand urls

public

Returns:
array Redirect mappings

SEO templates

OUT FORMAT REGEX: First array element is a regex to run to see if we've a match for the URL The second array element is the template to use the results of the parenthesis capture

Special variable #{__title__} is replaced with the $title data passed to output->formatUrl( $url, $title)

IMPORTANT: Remember that when these regex are used, the output has not been fully parsed so you will get: showuser={$data['member_id']} NOT showuser=1 so do not try and match numerics only!

IN FORMAT REGEX

This allows the registry to piece back together a URL based on the template regex So, for example: "/user/(\d+?)/", 'matches' => array( array( 'showuser' => '$1' ) )tells IP.Board to populate 'showuser' with the result of the parenthesis capture #1

public

Returns:
array SEO templates

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables