compiler







Docs For Class compiler



var imgPlus = new Image();
var imgMinus = new Image();
imgPlus.src = "../media/images/plus.png";
imgMinus.src = "../media/images/minus.png";

function showNode(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
var oImg = document.layers["img" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
var oImg = document.all["img" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
var oImg = document.getElementById("img" + Node);
break;
}
oImg.src = imgMinus.src;
oTable.style.display = "block";
}

function hideNode(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
var oImg = document.layers["img" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
var oImg = document.all["img" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
var oImg = document.getElementById("img" + Node);
break;
}
oImg.src = imgPlus.src;
oTable.style.display = "none";
}

function nodeIsVisible(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
break;
}
return (oTable && oTable.style.display == "block");
}

function toggleNodeVisibility(Node){
if (nodeIsVisible(Node)){
hideNode(Node);
}else{
showNode(Node);
}
}




compiler



Description

Description |
Vars (details)
| Methods (details)





Located in /compiler.php (line 3)












Variable Summary

Description |
Vars (details)
|
Methods (details)






mixed
$basetpl



mixed
$template







Method Summary

Description |
Vars (details)

|
Methods (details)






compiler
__construct
()




void
addto
(string &$structure, string $part, [array $vars = array()])




void
append
(string $id, [array $structure = array()], [string $vars = null], [string $category = "main"])




string
fetch
(string $file)




void
fetch_dbvars
()




void
make
(string $category)




void
prepend
(string $id, [array $structure = array()], [string $vars = null], [string $category = "main"])




void
render
()




array
varInfo
(string $var)







Variables

Description |
Vars (details)


|
Methods (details)









mixed
$basetpl
= "main" (line 16)





access: public













mixed
$template
= "ginger" (line 11)





access: public













Methods

Description |
Vars (details)
Methods (details)









Constructor __construct (line 26)



Constructor that sets pointers to certain vars that are to be used in the templates.


compiler

__construct

()










addto (line 46)



Add to the end of a the page structure


void

addto

(string &$structure, string $part, [array $vars = array()])




string
&$structure: The structure item to add to

string
$part: Name of the part to add

array
$vars: Vars to use in the part









append (line 91)



Append a part to the category


void

append

(string $id, [array $structure = array()], [string $vars = null], [string $category = "main"])




string
$id: Template id (filename) to use.

array
$structure: Page structure to use.

string
$vars: General variables not in any specific part.

string
$category: Which category to add to









fetch (line 735)



Get the contents of a template file without parsing it.


string

fetch

(string $file)




string
$file: Filename of the template file









fetch_dbvars (line 528)



Fetch dbvars from database into array for use by templates.


void

fetch_dbvars

()










make (line 426)



Make the output from a structure


void

make

(string $category)




string
$category: Category of the structure to make









prepend (line 63)



Prepend a part to the category


void

prepend

(string $id, [array $structure = array()], [string $vars = null], [string $category = "main"])




string
$id: Template id (filename) to use.

array
$structure: Page structure to use.

string
$vars: General variables not in any specific part.

string
$category: Which category to add to









render (line 457)



Render the compiled page.


void

render

()










varInfo (line 580)



Gets info from a ginger var.

return: Different information about the variable



array

varInfo

(string $var)




string
$var: Var in template format










Documentation generated on Tue, 8 Mar 2005 14:41:33 +0200 by phpDocumentor 1.3.0RC3




Wyszukiwarka

Podobne podstrony:
CompilationMXBean
CompileDB (2)
compilar linux
compilar dos
CompilerData
Noch ein PIC Compiler
fddshow compile
CompileInv3state
Projects Compil32 manifest
CompiledScript
compilation?pendency in implementation?D92496
Compiler
CompilationMXBean
java lang Compiler
avr compiler 8h
compiler
[Papermodels@emule] GPM Paper Model Compilation VIII (osloskop net) spis

więcej podobnych podstron