content
Packages
Interfaces
Classes
Files

Class: Parser

Source Location: /content/parser/parser.class.php [line 42]

Class Overview


This class is the basis of all the formatting processings that exist in PHPBoost.

Author(s):



Class Details

This class is the basis of all the formatting processings that exist in PHPBoost.

Tags:

[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor Parser [line 48]

Parser Parser( )
Builds a Parser object.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method get_content [line 60]

string get_content( [bool $addslashes = ADD_SLASHES])
Returns the content of the parser. If you called a method which parses the content, this content will be parsed.

Tags:

  • return: The content of the parser.

Parameters:

bool   $addslashes   ADD_SLASHES if you want to escape the slashes in your string (you often save a parsed content into the database when you parse it), otherwise DO_NOT_ADD_SLASHES.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method get_page_path [line 121]

string get_page_path( )
Returns the page path

Returns the page path

Tags:

  • return: path
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method get_path_to_root [line 103]

string get_path_to_root( )
Returns the path to root attribute.

Returns the path to root attribute.

Tags:

  • return: The path
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method set_content [line 78]

void set_content( string $content, [bool $stripslashes = PARSER_DO_NOT_STRIP_SLASHES])
Sets the content of the parser. When you will call a parse method, it will deal with this content.

Parameters:

string   $content   Content
bool   $stripslashes   PARSER_DO_NOT_STRIP_SLASHES if you don't want to strip slashes before adding it to the parser, otherwise PARSER_STRIP_SLASHES.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method set_page_path [line 112]

void set_page_path( string $page_path)
Sets the page path

Sets the page path

Parameters:

string   $page_path   Page path
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method set_path_to_root [line 94]

void set_path_to_root( string $path)
Sets the reference path for relative URL

Sets the reference path for relative URL

Parameters:

string   $path   Path
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Variables

[line 135]   static string[]  $array_tags  = array()

Tags:

    [ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
    [line 130]   string  $content  =  ''

    Tags:

      [ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
      [line 158]   string  $page_path  =  ''

      Tags:

        [ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
        [line 153]   string  $path_to_root  =  PATH_TO_ROOT

        Tags:

          [ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
          Documentation generated on Tue, 28 Jul 2009 22:43:41 +0200 by phpDocumentor 1.4.1