Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: GLText

Source Location: /system/classes/gltext.class.php

Class Overview




Methods



Class Details

[line 39]


[ Top ]


Class Methods


static method applyHTMLFilter [line 164]

static string applyHTMLFilter( string $text, string $postmode, string $permissions, int $version)

Apply HTML filter to the text



Tags:

return:  Escaped String
access:  public


Parameters:

string   $text   Text to prepare for store to databese
string   $postmode   Indicates if text is html, adveditor, wikitext or plaintext
string   $permissions   comma-separated list of rights which identify the current user as an "Admin"
int   $version   version of GLText engine

[ Top ]

static method checkHTML [line 226]

static string checkHTML( string $str, [string $permissions = 'story.edit'])

This function checks html tags.

Checks to see that the HTML tags are on the approved list and removes them if not.




Tags:

return:  Filtered HTML
access:  public


Parameters:

string   $str   HTML to check
string   $permissions   comma-separated list of rights which identify the current user as an "Admin"

[ Top ]

static method getDisplayText [line 100]

static string getDisplayText( string $text, string $postmode, int $version)

Returns text ready for display.



Tags:

return:  Escaped String
access:  public


Parameters:

string   $text   Text to prepare for display
string   $postmode   Indicates if text is html, adveditor, wikitext or plaintext
int   $version   version of GLText engine

[ Top ]

static method getEditText [line 51]

static string getEditText( string $text, string $postmode, int $version)

Returns text ready for the edit fields.



Tags:

return:  Escaped String
access:  public


Parameters:

string   $text   Text to prepare for editing
string   $postmode   Indicates if text is html, wikitext or plaintext
int   $version   version of GLText engine

[ Top ]

static method getPreviewText [line 206]

static string getPreviewText( string $text, string $postmode, string $permissions, int $version)

Returns text ready for preview.



Tags:

return:  Escaped String
access:  public


Parameters:

string   $text   Text to prepare for store to databese
string   $postmode   Indicates if text is html, adveditor, wikitext or plaintext
string   $permissions   comma-separated list of rights which identify the current user as an "Admin"
int   $version   version of GLText engine

[ Top ]

static method renderWikiText [line 270]

static string renderWikiText( string $wikitext)

Convert wiki-formatted text to (X)HTML



Tags:

return:  XHTML formatted text
access:  public


Parameters:

string   $wikitext   wiki-formatted text

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:49:20 +0000 by phpDocumentor 1.4.3