Property | Type | Description | |
---|---|---|---|
$alias_pattern | Array of Pattern for Aliases which are made for matching. | ||
$aliases | |||
$buffer_search_regex | |||
$handlers | Array of Handlers example: news, threads, articles | ||
$instance | |||
$output | The site render HTML buffer which is to be scanned | ||
$path_search_regex | |||
$pattern_replace | Target URLs to which permalink request will be rewrited. | ||
$pattern_search | Permalink Patterns which will be searched to match against current request. | ||
$pattern_tables | Array of DB Table Names with Schema example: prefix_news, prefix_threads, prefix_articles | ||
$patterns_regex | Array of Regular Expressions Patterns which are made for matching. | ||
$queries | Array of Total Queries which were run. | ||
$regex_statements | array | Statements are calculation results of Rewrite scan We will have various types of regex statements This is the results data of the entire permalink success/fails | |
$requesturi | Portion of the URL to match in the Regex | ||
$rewrite_code | example: %thread_id%, %news_id% | ||
$rewrite_replace | example: %thread_id% should be replaced with ([0-9]+) | ||
$warnings | Array of Warnings |
Method | Description | |
---|---|---|
getInstance ( ) : static | Get the instance of the class |
Method | Description | |
---|---|---|
HTML_In ( $output ) | Entrance to Permalink from PHP Buffer This function prepares HTML codes to be preg_matched against Permalink Driver Decode everything | |
HTML_Out ( $output ) | Exit from Permalink to PHP Buffer This function prepares HTML codes to be viewed by browser | |
addRegexTag ( array $regex, string $driver ) | Adds the Regular Expression Tags | |
appendSearchPath ( string $str ) : string | Append the BASEDIR Path to Search String | |
cleanRegex ( string $regex ) : string | Clean the REGEX by escaping some characters | |
cleanString ( $mystr = "" ) | Clean the URI String for MATCH/AGAINST in MySQL | |
cleanURL ( string $string, $delimiter = "-" ) : string | Cleans the URL | |
getTagPosition ( string $pattern, string $search ) | Calculates the Tag Position in a given pattern. | |
getUniqueIDtag ( string $type ) | Get the Tag of the Unique ID type | |
handle_non_seo_url ( ) | Validate_url | |
handle_permalink_requests ( ) | Builds the Regular Expressions Patterns for Permalink Translations | |
includeHandlers ( ) | Include the Handlers | |
includeRewrite ( ) | Include the rewrite include file | |
loadSQLDrivers ( ) | Import Handlers from Database | |
makeSearchRegex ( $pattern, string $type ) | Adds the Regular Expression Tags -- for permalink search regex | |
normalize ( $string ) : string | Replaces special characters in a string with their "non-special" counterpart. | |
prepare_searchRegex ( ) | ||
redirect_301 ( string $target, $debug = FALSE ) | Redirect 301 : Moved Permanently Redirect This function invoked to prevent of caching any kinds of Non SEO URL on render. | |
replaceOtherTags ( string $type, string $search, string $replace, array $matches, string $matchkey ) : string | Replace Other Tags in Pattern | |
setWarning ( integer $code, string $info = "" ) | Set Warnings | |
verifyHandlers ( ) | Verify Handlers | |
wrapDoubleQuotes ( $str ) : string | Add compatibalities with double quotes HTML codes for Permalink | |
wrapQuotes ( string $str ) : string | Wrap a String with Single Quotes (') This function will wrap a string passed with Single Quotes. |
Method | Description | |
---|---|---|
AddRewrite ( string $include_prefix ) | Add the rewrite include file to be included |
protected HTML_In ( $output ) |
protected HTML_Out ( $output ) | ||
$output |
protected addRegexTag ( array $regex, string $driver ) | ||
$regex | array | Array of Tags to be added. |
$driver | string | Type or Handler name |
protected appendSearchPath ( string $str ) : string | ||
$str | string | The String |
return | string |
protected static cleanRegex ( string $regex ) : string | ||
$regex | string | The expression String |
return | string |
protected cleanString ( $mystr = "" ) |
public static getInstance ( ) : static | ||
return | static |
protected getTagPosition ( string $pattern, string $search ) | ||
$pattern | string | The Pattern string in which particular Tag will be searched. |
$search | string | The Tag which will be searched. |
protected getUniqueIDtag ( string $type ) | ||
$type | string | Type or Handler name |
protected handle_non_seo_url ( ) |
protected handle_permalink_requests ( ) |
protected includeHandlers ( ) |
protected includeRewrite ( ) |
protected loadSQLDrivers ( ) |
protected makeSearchRegex ( $pattern, string $type ) | ||
$type | string | Type or Handler name |
protected static redirect_301 ( string $target, $debug = FALSE ) | ||
$target | string | The Target URL |
protected replaceOtherTags ( string $type, string $search, string $replace, array $matches, string $matchkey ) : string | ||
$type | string | Type of Pattern |
$search | string | specific Search Pattern |
$replace | string | specific Replace Pattern |
$matches | array | Array of the Matches found for a specific pattern |
$matchkey | string | A Unique matchkey for different matches found for same pattern |
return | string |
protected setWarning ( integer $code, string $info = "" ) | ||
$code | integer | The Code Number of the Warning |
$info | string | Any other Info to Show along with Warning |
protected verifyHandlers ( ) |
protected static wrapDoubleQuotes ( $str ) : string | ||
$str | ||
return | string |
protected static wrapQuotes ( string $str ) : string | ||
$str | string | The String |
return | string |
protected $alias_pattern |
protected $handlers |
protected $pattern_replace |
protected $pattern_search |
protected $pattern_tables |
protected $patterns_regex |
protected array $regex_statements | ||
return | array |
protected $rewrite_replace |