phpDocumentor pivotx
modules
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Procedural File: module_parser.php

Source Location: /modules/module_parser.php

Page Details

Contains the general functions we use to generate pages.

Classes
Class Description
Parser The class that renders pages and handles caching, for all the pages that are seen on the 'front side'.
Includes
require (dirname(dirname(__FILE__))."/lamer_protection.php") [line 27]

Contains the general functions we use to generate pages.

[ Top ]


Functions
category_from_para  [line 3252]

mixed category_from_para( string $cat  )

Translate a category that came from an url back to it's proper name, if necessary. Returns false if the category isn't present.

Parameters:
string   $cat: 


[ Top ]
cms_tag_weblog  [line 2396]

void cms_tag_weblog( $params, $format  )

Process CMS tags into HTML for weblogs.

Parameters:
   $params: 
   $format: 


[ Top ]
fixquotescallback  [line 3322]

void fixquotescallback( string $tag  )

fixes quotes inside tags.

input: [[ foo value="bar" ]] output: [[ foo value="bar" ]]

Parameters:
string   $tag: 


[ Top ]
makeArchiveLink  [line 2592]

void makeArchiveLink( [ $date = ""], [ $unit = ""], [ $override_weblog = ""]  )

Makes archive link for a certain date.

Parameters:
   $date: 
   $unit: 
   $override_weblog: 


[ Top ]
makeAuthorLink  [line 3004]

void makeAuthorLink( string $name, [ $override_weblog = ""]  )

Make a link to an author.

Parameters:
string   $name: 
   $override_weblog: 


[ Top ]
makeCategoryLink  [line 2964]

void makeCategoryLink( string $name, [ $override_weblog = ""]  )

Make a link to a category.

Parameters:
string   $name: 
   $override_weblog: 


[ Top ]
makeFeedLink  [line 3119]

string makeFeedLink( [string $type = 'rss'], [array $params = array()]  )

Makes a link to an Atom or RSS feed.

Parameters:
string   $type: 
array   $params: 


[ Top ]
makeFilelink  [line 2648]

void makeFilelink( [mixed $data = ""], [string $weblog = ""], [string $anchor = "comm"], [string $parameter = ""], [boolean $para_weblog = false]  )

Make a link to an entry, using the settings for how they should be formed.

Parameters:
mixed   $data: 
string   $weblog: 
string   $anchor: 
string   $parameter: 
boolean   $para_weblog: 

API Tags:
Usedby:  makeFileURL() - makes the link (without protocol and host).


[ Top ]
makeFileURL  [line 2852]

string makeFileURL( [string $code = ""], [string $weblog = ""], [string $anchor = "comm"], [string $parameter = ""]  )

Make a URL (global link) to an entry.

Parameters:
string   $code: 
string   $weblog: 
string   $anchor: 
string   $parameter: 

API Tags:
Uses:  makeFilelink() - makes the link (without protocol and host).


[ Top ]
makeMoreLink  [line 2802]

string makeMoreLink( [array $data = ""], [string $weblog = ""], [array $params = array()]  )

Make a link to an entry's body (if there is a body). If $params['html'] is set to true, the HTML code for the link will be returned.

Parameters:
array   $data: 
string   $weblog: 
array   $params: 


[ Top ]
makePageLink  [line 2916]

void makePageLink( string $uri, [string $title = ""], [string $uid = ""], [string $date = ""], [ $override_weblog = ""]  )

Make a link to a page.

Parameters:
string   $uri: 
string   $title: 
string   $uid: 
string   $date: 
   $override_weblog: 


[ Top ]
makeRSDLink  [line 3080]

void makeRSDLink( )

Makes a link to a RSD (API autodiscovery) file.



[ Top ]
makeSearchLink  [line 3043]

void makeSearchLink( [ $append = ''], [ $override_weblog = '']  )

Makes a link to the search.

Parameters:
   $append: 
   $override_weblog: 


[ Top ]
makeVisitorPageLink  [line 2868]

string makeVisitorPageLink( [string $func = ''], [ $override_weblog = '']  )

Make a link to the visitor page.

Parameters:
string   $func: 
   $override_weblog: 


[ Top ]
para_category  [line 3225]

string para_category( $catkey, string $weblog  )

prepares a category name so it can be used as a parameter in an URL it it's us-ascii, it can be used straight away, otherwise it uses the index in the categories from configuration.

Parameters:
string   $weblog: 
   $catkey: 


[ Top ]
para_weblog  [line 3190]

string para_weblog( $weblogkey, [array $categories = ""], string $weblog  )

prepares a weblogname so it can be used as a parameter in an URL it it's us-ascii, it can be used straight away, otherwise it uses the index in $Weblogs

Parameters:
string   $weblog: 
array   $categories: 
   $weblogkey: 


[ Top ]
parseRewrittenURL  [line 1972]

void parseRewrittenURL( string $rewrite, string $uri  )

Parse a 'rewritten' url, if the site uses mod_rewrite.

/archive/2007-01-08/name -> $rewrite = archive , $uri = 2007-01-08/name /archive/2007/01/08/name -> $rewrite = archive , $uri = 2007/01/08/name /page/name-of-page -> $rewrite = page , $uri = name-of-page [...]

It also supports multiple weblogs, i.e., /archive/2007-01-08/name/weblog -> $rewrite = archive , $uri = 2007-01-08/name/weblog /page/name-of-page/weblog -> $rewrite = page , $uri = name-of-page/weblog [...]

This function modifies the superglobal $_GET array, so that it can select which page to render, and what to render on it.

Parameters:
string   $rewrite: 
string   $uri: 


[ Top ]
parse_intro_or_body  [line 2203]

void parse_intro_or_body( string $text, [boolean $strip = false], [integer $textmode = 0], [boolean $text_processing_only = false]  )

Parsing intro or body.

if $strip is set, we strip out all tags, except for the most common ones. If $text_processing_only is set, we only apply the text processing (textile, markdown), but not the Smarty parsing. This is useful for converting between one editing mode to the other

Parameters:
string   $text: 
boolean   $strip: 
integer   $textmode: 
boolean   $text_processing_only: 


[ Top ]
parse_string  [line 2161]

string parse_string( string $text, [boolean $strip = false]  )

Parsing string (with template tags).

if $strip is set, we strip out all tags, except for the most common ones.

Parameters:
string   $text: 
boolean   $strip: 


[ Top ]
replace_subweblogs_templates  [line 2369]

string replace_subweblogs_templates( string $template_html, string $replace_html  )

Removes all subweblog tags, and replaces one of the subweblogs, "standard" if present else the first, with the input replacement HTML.

Parameters:
string   $template_html: 
string   $replace_html: 


[ Top ]
snippet_parse  [line 2293]

void snippet_parse( $snippet_code  )

Parsing snippets in templates

Parameters:
   $snippet_code: 


[ Top ]
unparse_intro_or_body  [line 2278]

void unparse_intro_or_body( $text  )

Unparsing intro or body: Make a futile attempt at undoing HTML markup, so the

entry or page can be edited with 'convert LB', 'Textile' or 'Markup', without getting too much extra line- and paragraph breaks

Parameters:
   $text: 


[ Top ]
weblog_from_para  [line 3290]

mixed weblog_from_para( string $weblog  )

Translate a weblog name that came from an url back to it's proper name, if necessary. Returns false is the weblog isn't present.

Parameters:
string   $weblog: 


[ Top ]


Documentation generated on Tue, 05 Sep 2017 01:06:09 +0200 by phpDocumentor 1.4.3