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 11)












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
fetchvars
(list $variable1,...)




void
fetch_dbvars
()




bool
isvar
(string $variable, [string $language = 'def'])




bool
is_tpl
(string $file)




void
make
(string $category)




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




void
render
()




array
varInfo
(string $var)




void
&varref
(string $variable, [string $language = null])







Variables

Description |
Vars (details)


|
Methods (details)









mixed
$basetpl
= "main" (line 26)





access: public













mixed
$template
= "ginger" (line 21)





access: public













Methods

Description |
Vars (details)
Methods (details)









Constructor __construct (line 39)



Constructor that does nothing ..


compiler

__construct

()










addto (line 103)



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 155)



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 806)



Get the contents of a template file without parsing it.


string

fetch

(string $file)




string
$file: Filename of the template file









fetchvars (line 47)



Add to the dbvars fetch list


void

fetchvars

(list $variable1,...)




list
$variable1,...: dbvars to fetch









fetch_dbvars (line 574)



Fetch dbvars from database into array for use by templates.


void

fetch_dbvars

()










isvar (line 86)



Check that the variable got loaded


bool

isvar

(string $variable, [string $language = 'def'])




string
$variable: Name of the variable

string
$language: Language of the variable









is_tpl (line 790)



Check if the specified template excists


bool

is_tpl

(string $file)




string
$file: Filename of the template file









make (line 485)



Make the output from a structure


void

make

(string $category)




string
$category: Category of the structure to make









prepend (line 127)



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 518)



Render the compiled page.


void

render

()










varInfo (line 628)



Gets info from a ginger var.

return: Different information about the variable



array

varInfo

(string $var)




string
$var: Var in template format









varref (line 63)



Reference to a dbvar


void

&varref

(string $variable, [string $language = null])




string
$variable: Name of the variable

string
$language: Language of the variable










Documentation generated on Sun, 19 Jun 2005 18:15:56 +0300 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
compiler
CompilationMXBean
java lang Compiler
avr compiler 8h
[Papermodels@emule] GPM Paper Model Compilation VIII (osloskop net) spis

więcej podobnych podstron