File/lib/template-resource.inc.php

Description

StockManiac template resource function library

  • callback functions to be registered with $smarty->register_resource()
  • functions locate and load template code from wherever needed
  • see Smarty Documentation under the 'Resources' topic

Functions
plugin_get_secure (line 71)

tell whether plugin $name is safe to load

FIXME: so far this just assumes everything is secure

  • access: public
bool plugin_get_secure (string $name,  &$smarty, object $smarty)
  • string $name
  • object $smarty
  • &$smarty
plugin_get_template (line 28)

handle plugin specific templates

bool plugin_get_template (string $name,  &$source,  &$smarty, filehandle $source, object $smarty)
  • string $name
  • filehandle $source
  • object $smarty
  • &$source
  • &$smarty
plugin_get_timestamp (line 50)

get modification time of file $name

bool plugin_get_timestamp (string $name,  &$timestamp,  &$smarty, int $timestamp, object $smarty)
  • string $name
  • int $timestamp
  • object $smarty
  • &$timestamp
  • &$smarty
plugin_get_trusted (line 85)

plugin_get_trusted

FIXME: not implemented/not needed

  • access: public
void plugin_get_trusted (string $name,  &$smarty, object $smarty)
  • string $name
  • object $smarty
  • &$smarty

Documentation generated on Sun, 22 Aug 2010 11:20:28 +0200 by phpDocumentor 1.4.3