add_header_comment [line 754]
string add_header_comment(
string $tpl_source, &$smarty, object $smarty
)
|
|
ssmarty::add_header_comment()
purpose: parsing for header comments in template files
Parameters:
|
string |
$tpl_source: |
|
|
object |
$smarty: |
|
|
|
&$smarty: |
|
cmp [line 374]
array cmp(
array $a, array $b
)
|
|
ssmarty::cmp()
// purpose: callback sort, called from the above function, will sort an array based on the probabily key
Parameters:
db_get_secure [line 233]
boolean db_get_secure(
string $tpl_name, &$smarty_obj, object & $smarty
)
|
|
ssmarty::db_get_socure()
// purpose: check security on templates
Parameters:
|
string |
$tpl_name: |
|
|
object & |
$smarty: |
|
|
|
&$smarty_obj: |
|
db_get_template [line 183]
float db_get_template(
string $tpl_name, string &$tpl_source, &$smarty, object & $smarty, object & $frontend
)
|
|
ssmarty::db_get_template()
// purpose: get template source from database
Parameters:
|
string |
$tpl_name: |
|
|
object & |
$smarty: |
|
|
object & |
$frontend: |
|
|
string |
&$tpl_source: |
& $tpl_source |
|
|
&$smarty: |
|
db_get_timestamp [line 209]
boolean db_get_timestamp(
string $tpl_name, string &$tpl_timestamp, &$smarty, object & $smarty
)
|
|
ssmarty::db_get_timestamp()
purpose: get template source from database
Parameters:
|
string |
$tpl_name: |
|
|
object & |
$smarty: |
|
|
string |
&$tpl_timestamp: |
& $tpl_timestamp |
|
|
&$smarty: |
|
db_get_trusted [line 246]
boolean db_get_trusted(
string $tpl_name, &$smarty_obj, object & $smarty
)
|
|
ssmarty::db_get_trusted() // purpose: nothing till now ...
Parameters:
|
string |
$tpl_name: |
|
|
object & |
$smarty: |
|
|
|
&$smarty_obj: |
|
API Tags:
getImage [line 538]
string getImage(
array $params, &$smarty
)
|
|
ssmarty::getImage()
// purpose: returns real filename for object_name
Parameters:
getModulus [line 404]
boolean getModulus(
array $params, &$smarty, object $smarty
)
|
|
ssmarty::getModulus()
// purpose: checks modulus for an integer
Parameters:
|
array |
$params: |
|
|
object |
$smarty: |
|
|
|
&$smarty: |
|
getTplImage [line 516]
string getTplImage(
array $params, &$smarty
)
|
|
ssmarty::getTplImage()
// purpose: returns real filename for object_name
Parameters:
isinrelation [line 387]
void isinrelation(
array $params, &$smarty, object $smarty
)
|
|
ssmarty::isinrelation()
purpose: checks if a certain id is in the relations array
Parameters:
|
array |
$params: |
// parameters comes from templates |
|
object |
$smarty: |
// smarty object |
|
|
&$smarty: |
|
scycle [line 420]
string scycle(
array $params, &$smarty, object $smarty
)
|
|
ssmarty::scycle() // purpose: wrapper for the smarty-cycle function ...
Parameters:
|
array |
$params: |
|
|
object |
$smarty: |
|
|
|
&$smarty: |
|
smarty_modifier_checkIfShoppingCart [line 683]
string smarty_modifier_checkIfShoppingCart(
$value, string $item
)
|
|
smarty::checkIfShoppingCart
// purpose: checks if a given object is in the shoppingcart
Parameters:
smarty_modifier_checkIfShortList [line 667]
string smarty_modifier_checkIfShortList(
$value, string $item
)
|
|
smarty::checkIfShortList
// purpose: checks if a given object is in the shortlist
Parameters:
smarty_modifier_checkObject [line 719]
string smarty_modifier_checkObject(
string $value, array $objects
)
|
|
smarty::checkObject // purpose: checks if the spunQ return array from standard-methods includes this id as an object_id returns an error, if $params is not an array...
Parameters:
|
string |
$value: |
|
|
array |
$objects: |
|
smarty_modifier_checkPDF [line 273]
float smarty_modifier_checkPDF(
string $filename, $params
)
|
|
ssmarty::checkFile()
// purpose: checks if a filename exists in the file-system
Parameters:
|
string |
$filename: |
// given filename to check |
|
|
$params: |
|
API Tags:
| Return: | timestamp as float value |
smarty_modifier_checkSlash [line 633]
string smarty_modifier_checkSlash(
string $item
)
|
|
smarty::checkSlash
// purpose: checks an ending slash if necessary
Parameters:
smarty_modifier_createEmail [line 607]
string smarty_modifier_createEmail(
$item, string $text
)
|
|
smarty::_createEmail
// purpose: regex postparsing
Parameters:
smarty_modifier_createLinks [line 590]
string smarty_modifier_createLinks(
$item, string $text
)
|
|
smarty::_createLinks
// purpose: regex postparsing
Parameters:
smarty_modifier_createProjectLinks [line 618]
string smarty_modifier_createProjectLinks(
string $item
)
|
|
smarty::_createExternalLinks
// purpose: create external links
Parameters:
smarty_modifier_getMimeIcon [line 499]
string smarty_modifier_getMimeIcon(
$filename, string $string
)
|
|
ssmarty::getMimeIcon()
// purpose: escapes special characters in string
Parameters:
|
string |
$string: |
// string to truncate |
|
|
$filename: |
|
API Tags:
smarty_modifier_handleMacros [line 560]
array smarty_modifier_handleMacros(
$data $item
)
|
|
ssmarty::smarty_modifiers_handleMacros
// purpose: reads macros from configs and sets html including linebreak
Parameters:
smarty_modifier_handleRegex [line 577]
string smarty_modifier_handleRegex(
string $item
)
|
|
ssmarty::smarty_modifier_handleRegex
// purpose: reads macros from configs and sets html without linebreak
Parameters:
smarty_modifier_isinterest [line 736]
string smarty_modifier_isinterest(
string $value, array $objects
)
|
|
smarty::isinterest
// purpose: check if a given interest is in the userdata-interest object
Parameters:
|
string |
$value: |
|
|
array |
$objects: |
|
smarty_modifier_markWords [line 646]
string smarty_modifier_markWords(
$value, string $item
)
|
|
smarty::markWords
// purpose: check if key is in array
Parameters:
smarty_modifier_remreturn [line 767]
array smarty_modifier_remreturn(
$data $value
)
|
|
ssmarty::smarty_modifiers_remreturn
// purpose:
Parameters:
smarty_modifier_sescape [line 288]
void smarty_modifier_sescape(
string $string, [string $esc_type = 'html']
)
|
|
ssmarty::smarty_modifier_sescape()
// purpose: prints parameters given to smarty
Parameters:
|
string |
$string: |
// string to escape |
|
string |
$esc_type: |
// type of string |
smarty_modifier_sin_array [line 702]
string smarty_modifier_sin_array(
string $values, array $params
)
|
|
smarty::in_array // purpose: checks if a given value is in the array params. in_array-php-function used by smarty returns an error, if $params is not an array...
Parameters:
|
string |
$values: |
|
|
array |
$params: |
|
smarty_modifier_struncate [line 352]
string smarty_modifier_struncate(
string $string, [int $length = 80], [string $etc = '...'], [boolean $break_words = false]
)
|
|
ssmarty::smarty_modifier_struncate()
// purpose: truncates a string to the given length and adds $etc at the end of string
Parameters:
|
string |
$string: |
// string to truncate |
|
int |
$length: |
// length to truncate string |
|
string |
$etc: |
// put at the end of the new string |
|
boolean |
$break_words: |
// break words or not ... |
smarty_modifier_xtest [line 262]
void smarty_modifier_xtest(
array $params
)
|
|
ssmarty::smarty_modifier_xtest()
// purpose: prints parameters given to smarty
Parameters: