Max Replace The page is generated with the help PHP - creating pattern MaxReplace
Files used at generation: replace.txt, en.txt, main.htm, top.htm, blue.htm, menu.txt, lang.txt, blue_baners.htm, baners.txt, gray.htm, functions.htm, functions_en.txt, buttom.htm
Time of generation: 0.0452439785004 msec
Menu
Language
Baners
Functions
The basic functions of a class
Actually class contains set of various functions, the majority of them are used only for internal needs of a class.

function MR() - the designer of a class (obligatory call).
Examples of a call:
$mr= new MR(" [mtb" , " [mte" , " [mwp" , " [stb" , " [ste" , " [swp" , "/main.htm" , "#" , " [m#" , " [s#" , " [value#");
$mr= new MR("/main.htm");
$mr= new MR();

function autopattern() - the function for automatic processing of a pattern, function recursive and пере will process given until then while the returned data will not cease will change.
Examples of a call:
$mr->autopattern(" [autopattern:/main.htm,/main.txt,/sub.txt");
$mr->autopattern(" [autopattern:/main.htm,/main.txt");
$mr->autopattern(" [autopattern:/main.htm");
$mr->autopattern("/main.htm","/main.txt"); <- direct transfer of the data
$mr->autopattern("/main.htm","/main.txt",$sub); <- direct transfer of the data
$mr->autopattern("/main.htm");
$mr->autopattern("");


function addreplace() - function for addition of rules of replacement of lines, the rules will be processed by way of their addition.
Examples of a call:
$mr->addreplace(" Menu\t Menu");
$mr->addreplace("/lang.txt");


function setsepchar() - the function for change of a symbol "of a separator of a line" (is used for analysis of a line on elements, by default - "\t").
Examples of a call:
$mr->setsepchar("\t");
$mr->setsepchar(';');


function setpath() - the function establishes a directory with patterns (by default - "skin") and directory with the data (by default - "data")
Examples of a call:
$mr->function setpath("myskin","mydata");
$mr->setpath("myskin");
$mr->setpath();


function addplugin() - function for connection user plug-ins.
Examples of a call:
$mr->addplugin("plugins/my.php");

function setcachepath() - the function establishes a directory for preservation cache of files, if not is specified, the caching is switched - off. If for formation of the document the direct transfer of the data is used, caching also is disconnected.
Examples of a call:
$mr->setcachepath("cache");

function viewprocess() - function - switch, for viewing a course of transformation of patterns.
Examples of a call:
$mr->viewprocess();
© 2008 ZuBAR