Changes

Jump to: navigation, search

Pandora - Variables Replace

873 bytes added, 15:56, 6 August 2010
Created page with 'This function invokes the variable processor and returns formatted content. variables_replace(flag,callbackfunc,objecttype,objectid,content) {| border="1" !Parameter !Descript…'
This function invokes the variable processor and returns formatted content.

variables_replace(flag,callbackfunc,objecttype,objectid,content)

{| border="1"
!Parameter
!Description
|-
|'''Flag'''||True or false, send synchronously or asynchronously.
|-
|'''Callbackfunc''' ||Function to be used after the asynchronous function call.
|-
|'''objecttype'''|| Type of object to be processed (30:company, 40: user, 23: level one, 26: level 2, 31: level 3, 122: invoice,78:transaction)
|-
|'''object id'''||The ID of the object to be processed
|-
|'''contact'''||The string that contacins the text in which the variables are to be replaced. For ex. if the content were set to "welcome @firstname@ @lastname@" And the object ID where set to the current user then the return value would be: "Welcome Sample User"
|-
| '''Returns''' || Formatted string
|}



[[Category: Pandora]]

Navigation menu