Full index

Package indexes


a c d e g i l m s
a
top
addElement
Metadata::addElement() in Metadata.php
Adds one MetadataElement to the internal collection of elements.
addElements
Metadata::addElements() in Metadata.php
Adds the whole Metadata to the internal collection of elements.
assignBlockVars
Block-level variable assignment. Adds a new block iteration with the given variable assignments. Note that this should only be called once per block iteration.
assignVar
Template::assignVar() in Template.php
Root-level variable assignment. Adds to current assignments, overriding any existing variable assignment with the same name.
assignVars
Template::assignVars() in Template.php
Root-level variable assignment. Adds to current assignments, overriding any existing variable assignment with the same name.
available
Metadata::available() in Metadata.php
Returns True, if this Metadata contains any elements.
c
top
compile
Template::compile() in Template.php
Compiles the given string of code, and returns the result in a string.
d
top
destroy
Template::destroy() in Template.php
Destroys this template object. Should be called when you're done with it, in order to clear out the template data so you can load/parse a new template set.
e
top
execute
Template::execute() in Template.php
g
top
generateBlockDataRef
Generates a reference to the array of data values for the given (possibly nested) block namespace. This is a string of the form: $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN']
generateBlockDataRef
generateBlockVarRef
Generates a reference to the given variable inside the given (possibly nested) block namespace. This is a string of the form: ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' It's ready to be inserted into an "echo" line in one of the templates.
generateBlockVarRef
getCompiledCode
Returns compiled code for the given handle.
getDesc
Returns longer text, describing this data element.
getHeight
Image::getHeight() in Image.php
Returns height of the image.
getImage
Returns image associated with data element.
getLink
Returns URL if this element represents link to some resource.
getMetadata
Metadata::getMetadata() in Metadata.php
Returns collection of Metadata/MetadataElement elements.
getName
Returns internal identificator of the data.
getPath
Image::getPath() in Image.php
Return path to the image file.
getTitle
Returns text representation of the data element.
getUncompiledCode
Returns uncompiled code for the given handle.
getWidth
Image::getWidth() in Image.php
Returns width of the image.
i
top
Image.php
Image.php in Image.php
Image
Image::Image() in Image.php
Constructor for the class.
Image
Image in Image.php
Image class holds information about graphic file.
ImageTest
ImageTest in ImageTest.php
ImageTest.php
ImageTest.php in ImageTest.php
l
top
loadFile
TestTemplate::loadFile() in TemplateTest.php
loadFile
Template::loadFile() in Template.php
If not already done, load the file for the given handle and populate the uncompiled_code[] hash with its code. Do not compile.
m
top
Metadata.php
Metadata.php in Metadata.php
main
TestAll::main() in TestAll.php
makeFilename
TestTemplate::makeFilename() in TemplateTest.php
makeFilename
Template::makeFilename() in Template.php
Generates a full path+filename for the given filename, which can either be an absolute name, or a name relative to the rootdir for this Template object.
Metadata
Metadata in Metadata.php
Core class of data representation in the program.
MetadataElement
Constructs new metadata element. Sets all properties.
MetadataElement
MetadataElement in Metadata.php
Bean class MetadataElement holds all necessary information for data representation on the page. Metadata class uses this bean to distribute data into application.
MetadataTest
MetadataTest in MetadataTest.php
MetadataTest.php
MetadataTest.php in MetadataTest.php
p
top
PHPUnit2_MAIN_METHOD
PHPUnit2_MAIN_METHOD in TestAll.php
s
top
setDesc
Sets longer text, describing this data element.
setFilenames
Template::setFilenames() in Template.php
Sets the template filenames for handles. $filenameArray should be a hash of handle => filename pairs.
setImage
Sets image associated with data element.
setLink
Sets URL if this element represents link to some resource.
setName
Sets internal identificator of the data.
setPath
Image::setPath() in Image.php
Sets up path to the image file.
setRootdir
Template::setRootdir() in Template.php
Sets the template root directory for this Template object.
setTitle
Sets text representation of the data element.
setUp
TemplateTest::setUp() in TemplateTest.php
setUp
ImageTest::setUp() in ImageTest.php
setUp
MetadataTest::setUp() in MetadataTest.php
suite
TestAll::suite() in TestAll.php
t
top
Template.php
Template.php in Template.php
Template
Template::Template() in Template.php
Constructor. Simply sets the root dir.
Template
Template in Template.php
Template class.
TemplateTest
TemplateTest in TemplateTest.php
testAddElement
MetadataTest::testAddElement() in MetadataTest.php
testAddElements
TestAll
TestAll in TestAll.php
testAvailable
MetadataTest::testAvailable() in MetadataTest.php
testCompile
TemplateTest::testCompile() in TemplateTest.php
testGenerateBlockDataRef
testGenerateBlockVarRefs
testGetHeight
testGetPath
ImageTest::testGetPath() in ImageTest.php
testGetUncompiledCode
testGetWidth
ImageTest::testGetWidth() in ImageTest.php
testLoadFile
TemplateTest::testLoadFile() in TemplateTest.php
testMakeFilename
TemplateTest.php
TemplateTest.php in TemplateTest.php
TestAll.php
TestAll.php in TestAll.php
testSetPath
ImageTest::testSetPath() in ImageTest.php
testSetRootdir
TemplateTest::testSetRootdir() in TemplateTest.php
TestTemplate
TestTemplate in TemplateTest.php
Template class.
a c d e g i l m s