phpDocumentor Gallery
PHPUnit
[ class tree: Gallery ] [ index: Gallery ] [ all elements ]

Class: UnitTestTemplate

Source Location: /lib/tools/phpunit/UnitTestTemplate.class

Class UnitTestTemplate

Class Overview

Unit test GalleryTemplate. This is a fake GalleryTemplate that just serves as a container for template data to be used in GalleryView tests, free of dependencies to Smarty.

Located in /lib/tools/phpunit/UnitTestTemplate.class [line 39]

GalleryTemplate
   |
   --UnitTestTemplate

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From GalleryTemplate

GalleryTemplate::$_compiledTemplateDir
GalleryTemplate::$_smarty
GalleryTemplate::$_templateDir

Inherited From GalleryTemplate

GalleryTemplate::GalleryTemplate()
GalleryTemplate::display()
Display the properly localized template
GalleryTemplate::fetch()
Render the properly localized template
GalleryTemplate::getVariable()
Retrieve a template value
GalleryTemplate::getVariableByReference()
Retrieve a reference to a template value
GalleryTemplate::hasVariable()
Return true if the given variable is set
GalleryTemplate::head()
Add a template to include in the <head> section
GalleryTemplate::javascript()
Add a JavaScript to include in the <head> section
GalleryTemplate::link()
Add a <link> element in the <head> section
GalleryTemplate::meta()
Add a meta element to the <head> section
GalleryTemplate::preFilter()
Remove leading whitespace when compiling tpl to produce smaller html page sizes.
GalleryTemplate::resourceGetSecure()
GalleryTemplate::resourceGetTemplate()
GalleryTemplate::resourceGetTemplateBaseDir()
Returns the base directory of the specified template. This is required to support loading templates from g2data/plugins.
GalleryTemplate::resourceGetTimestamp()
GalleryTemplate::resourceGetTrusted()
GalleryTemplate::setVariable()
Assign a template key/value pair
GalleryTemplate::setVariableByReference()
Assign a template key/value pair
GalleryTemplate::shouldDoCompileCheck()
Check whether modification checks should be done to see if the compiled templates are still up to date. The result is cached in memory.
GalleryTemplate::style()
Add a stylesheet to include in the <head> section
GalleryTemplate::title()
Set the title to include in the <head> section
GalleryTemplate::_getActualTemplatePath()
Given a template name (foo/bar/path/file.tpl), return the active template path based on the
GalleryTemplate::_getSmarty()
Return a properly configured instance of Smarty. This used to be a single shared static instance of Smarty, but now we build it every time we need it. Theoretically we shouldn't be creating more than one GalleryTemplate and hence, more than one Smarty instance per request. However, having it as a static object makes it less testable.
GalleryTemplate::_getThemeId()
Return the themeid for the current item.
GalleryTemplate::_initCompiledTemplateDir()
Initializes the directory where compiled templates will be saved for this specific template directory

[ Top ]
Method Summary
UnitTestTemplate   UnitTestTemplate()  
void   display()   Not implemented. Use a real GalleryTemplate to test compiled templates.
void   fetch()   Not implemented. Use a real GalleryTemplate to test compiled templates.
void   getVariable()  
void   &getVariableByReference()  
void   hasVariable()  
void   setVariable()  
void   setVariableByReference()  

[ Top ]
Methods
Constructor UnitTestTemplate  [line 43]

  UnitTestTemplate UnitTestTemplate( )



[ Top ]
display  [line 90]

  void display( $templateName  )

Not implemented. Use a real GalleryTemplate to test compiled templates.

Parameters:
   $templateName: 


Redefinition of:
GalleryTemplate::display()
Display the properly localized template

Redefined in descendants as:

[ Top ]
fetch  [line 83]

  void fetch( $templateName  )

Not implemented. Use a real GalleryTemplate to test compiled templates.

Parameters:
   $templateName: 


Redefinition of:
GalleryTemplate::fetch()
Render the properly localized template

[ Top ]
getVariable  [line 55]

  void getVariable( $key  )

Parameters:
   $key: 

API Tags:
See:  GalleryTemplate::getVariable


Redefinition of:
GalleryTemplate::getVariable()
Retrieve a template value

[ Top ]
getVariableByReference  [line 62]

  void &getVariableByReference( $key  )

Parameters:
   $key: 

API Tags:
See:  GalleryTemplate::getVariableByReference


Redefinition of:
GalleryTemplate::getVariableByReference()
Retrieve a reference to a template value

[ Top ]
hasVariable  [line 69]

  void hasVariable( $key  )

Parameters:
   $key: 

API Tags:
See:  GalleryTemplate::hasVariable


Redefinition of:
GalleryTemplate::hasVariable()
Return true if the given variable is set

[ Top ]
setVariable  [line 48]

  void setVariable( $key, [ $value = null]  )

Parameters:
   $key: 
   $value: 

API Tags:
See:  GalleryTemplate::setVariable


Redefinition of:
GalleryTemplate::setVariable()
Assign a template key/value pair

[ Top ]
setVariableByReference  [line 76]

  void setVariableByReference( $key, &$value  )

Parameters:
   $key: 
   &$value: 

API Tags:
See:  GalleryTemplate::setVariableByReference


Redefinition of:
GalleryTemplate::setVariableByReference()
Assign a template key/value pair

[ Top ]

Documentation generated on Wed, 16 Dec 2009 05:35:13 -0800 by phpDocumentor 1.3.0RC6