BaseActions Class Reference

Inheritance diagram for BaseActions:

ACTIONS BODYACTIONS COMMENTACTIONS ITEMACTIONS PAGEFACTORY

List of all members.

Public Member Functions

 BaseActions ()
 parse_include ($filename)
 parse_phpinclude ($filename)
 parse_parsedinclude ($filename)
 getIncludeFileName ($filename)
 parse_skinfile ($filename)
 parse_set ($property, $value)
 _addIfCondition ($condition)
 _updateTopIfCondition ()
 _addIfExecute ()
 _updateIfExecute ($condition)
 _getTopIfCondition ()
 setHighlight ($highlight)
 highlight (&$data)
 parse_if ()
 parse_else ()
 parse_elseif ()
 parse_ifnot ()
 parse_elseifnot ()
 parse_endif ()

Public Attributes

 $level
 $if_conditions
 $if_execute
 $if_currentlevel
 $strHighlight
 $aHighlight
 $parser


Detailed Description

This class contains parse actions that are available in all ACTION classes e.g. include, phpinclude, parsedinclude, skinfile, ...

It should never be used on it's own

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
BaseActions.php 1116 2007-02-03 08:24:29Z kimitake
Version:
NucleusJP
BaseActions.php,v 1.3 2007/02/04 06:28:46 kimitake Exp

Definition at line 24 of file BaseActions.php.


Member Function Documentation

BaseActions::BaseActions (  ) 

BaseActions::parse_include ( filename  ) 

Definition at line 66 of file BaseActions.php.

References getIncludeFileName().

BaseActions::parse_phpinclude ( filename  ) 

Definition at line 71 of file BaseActions.php.

References getIncludeFileName(), and includephp().

BaseActions::parse_parsedinclude ( filename  ) 

Definition at line 76 of file BaseActions.php.

References getIncludeFileName().

Referenced by ACTIONS::doForm().

BaseActions::getIncludeFileName ( filename  ) 

Returns the correct location of the file to be included, according to parser properties

IF IncludeMode = 'skindir' => use skindir

Definition at line 107 of file BaseActions.php.

References $DIR_SKINS, and PARSER::getProperty().

Referenced by parse_include(), parse_parsedinclude(), and parse_phpinclude().

BaseActions::parse_skinfile ( filename  ) 

Inserts an url relative to the skindir (useful when doing import/export)

e.g. <skinfile(default/myfile.sth)>

Definition at line 130 of file BaseActions.php.

References $CONF, and PARSER::getProperty().

BaseActions::parse_set ( property,
value 
)

Sets a property for the parser

Definition at line 139 of file BaseActions.php.

References PARSER::setProperty().

BaseActions::_addIfCondition ( condition  ) 

BaseActions::_updateTopIfCondition (  ) 

Definition at line 155 of file BaseActions.php.

Referenced by _addIfCondition(), and parse_endif().

BaseActions::_addIfExecute (  ) 

Helper function for elseif / elseifnot

Definition at line 165 of file BaseActions.php.

Referenced by parse_if(), and parse_ifnot().

BaseActions::_updateIfExecute ( condition  ) 

Helper function for elseif / elseifnot

Parameters:
string condition to be fullfilled

Definition at line 173 of file BaseActions.php.

Referenced by parse_else(), parse_elseif(), and parse_elseifnot().

BaseActions::_getTopIfCondition (  ) 

returns the currently top if condition

Definition at line 181 of file BaseActions.php.

BaseActions::setHighlight ( highlight  ) 

Sets the search terms to be highlighted

Parameters:
$highlight A series of search terms

Definition at line 191 of file BaseActions.php.

References $highlight, and parseHighlight().

BaseActions::highlight ( &$  data  ) 

Applies the highlight to the given piece of text

Parameters:
&$data Data that needs to be highlighted
See also:
setHighlight

Definition at line 205 of file BaseActions.php.

Referenced by ITEMACTIONS::highlightAndParse(), and COMMENTACTIONS::parse_body().

BaseActions::parse_if (  ) 

Parses <if%> statements

Definition at line 215 of file BaseActions.php.

References _addIfCondition(), and _addIfExecute().

Referenced by ACTIONS::parse_ifcat().

BaseActions::parse_else (  ) 

Parses <else%> statements

Definition at line 226 of file BaseActions.php.

References _addIfCondition(), and _updateIfExecute().

BaseActions::parse_elseif (  ) 

Parses <elseif%> statements

Definition at line 245 of file BaseActions.php.

References _addIfCondition(), and _updateIfExecute().

BaseActions::parse_ifnot (  ) 

Parses <ifnot%> statements

Definition at line 266 of file BaseActions.php.

References _addIfCondition(), and _addIfExecute().

BaseActions::parse_elseifnot (  ) 

Parses <elseifnot%> statements

Definition at line 277 of file BaseActions.php.

References _addIfCondition(), and _updateIfExecute().

BaseActions::parse_endif (  ) 

Ends a conditional if-block see e.g. ifcat (BLOG), ifblogsetting (PAGEFACTORY)

Definition at line 299 of file BaseActions.php.

References _updateTopIfCondition().


Member Data Documentation

BaseActions::$level

Definition at line 27 of file BaseActions.php.

BaseActions::$if_conditions

Definition at line 31 of file BaseActions.php.

BaseActions::$if_execute

Definition at line 35 of file BaseActions.php.

BaseActions::$if_currentlevel

Definition at line 39 of file BaseActions.php.

BaseActions::$strHighlight

Definition at line 42 of file BaseActions.php.

BaseActions::$aHighlight

Definition at line 46 of file BaseActions.php.

BaseActions::$parser


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:02 2008 by  doxygen 1.5.5