SDP
http://sdp.soapi.com/
2009-08-22T17:10:45+01:00SDP
http://sdp.soapi.com/
http://sdp.soapi.com/lib/images/favicon.icotext/html2007-02-25T22:07:31+01:00Dan Williams (dan@192.168.1.20)lastword - created
http://sdp.soapi.com/ptpscript:functions:lastword?do=diff1172441251
Get the last n words from a String. Syntax String lastword( String subject [, Number limit ] ) Parameters String subject - The String to extract from. Number limit - A maximum of limit words will be extracted from the subject string. Res...text/html2007-02-25T22:07:03+01:00Dan Williams (dan@192.168.1.20)firstword - created
http://sdp.soapi.com/ptpscript:functions:firstword?do=diff1172441223
Get the first n words from a String. Syntax String firstword( String subject [, Number limit ] ) Parameters String subject - The String to extract from. Number limit - A maximum of limit words will be extracted from the subject string. R...text/html2007-02-25T22:04:51+01:00Dan Williams (dan@192.168.1.20)last - created
http://sdp.soapi.com/ptpscript:functions:last?do=diff1172441091
Get the last n elements from a String. Syntax String last( String subject [, String separator [, Number limit ] ] ) Parameters String subject - The String to extract from. String separator - What to use as the boundary between elements in ...text/html2007-02-25T22:04:10+01:00Dan Williams (dan@192.168.1.20)first - created
http://sdp.soapi.com/ptpscript:functions:first?do=diff1172441050
Get the first n elements from a String. Syntax String first( String subject [, String separator [, Number limit ] ] ) Parameters String subject - The String to extract from. String separator - What to use as the boundary between elements i...text/html2007-01-24T19:39:57+01:00Dan Williams (dan@192.168.1.20)Macro Command - Changed to reflect scope features added in PTPScript 4.1
http://sdp.soapi.com/ptpscript:commands:macro?do=diff1169667597
The Macro command allows a template section, containing data and/or PTPScript code, to be defined as a macro. In this context, a macro is essentially a sub-template, and behaves very much like a function. By default, it has its own Variable "sc...text/html2007-01-11T14:56:40+01:00Dan Williams (dan@87.194.204.6)jsondecode - created
http://sdp.soapi.com/ptpscript:functions:jsondecode?do=diff1168527400
Convert a String in JSON format to an appropriate value. Syntax Mixed jsondecode( String subject [, Boolean associative ] ) Parameters String subject - The String to be converted. Boolean associative - Whether to convert objects into associ...text/html2007-01-11T14:47:42+01:00Dan Williams (dan@87.194.204.6)jsonencode - created
http://sdp.soapi.com/ptpscript:functions:jsonencode?do=diff1168526862
Convert a value to a JSON representation. Syntax String jsonencode( Mixed subject ) Parameters Mixed subject - The value to convert. Result String - The converted value. Returns subject converted into JSON format. ...text/html2006-06-29T03:00:18+01:00Dan Williams (dan@84.9.166.115)Return Command - created
http://sdp.soapi.com/ptpscript:commands:return?do=diff1151546418
The Return command allows the execution of the current template, macro, or section to be cut short, optionally returning a value which will override any output being generated by the code being returned from. There is just one command in the Return...text/html2006-06-27T03:31:37+01:00Dan Williams (dan@84.9.166.115)Section Command - created
http://sdp.soapi.com/ptpscript:commands:section?do=diff1151375497
The Section command allows a template section, containing data and/or PTPScript code, to be defined. In this context, a section is essentially a sub-template, just like an included template file, except that it is not in a separate file. It has its ...text/html2006-06-27T02:52:15+01:00Dan Williams (dan@84.9.166.115)Show Command - created
http://sdp.soapi.com/ptpscript:commands:show?do=diff1151373135
The Show and Hide commands allow areas of text to be marked as data, and therefore ignored by the PTP engine. These areas can contain PTPScript code, Placeholder symbols, etc. without being processed as PTPScript code. For instance, one use would be...text/html2006-06-17T02:42:32+01:00Dan Williams (dan@84.9.166.115)dump - created
http://sdp.soapi.com/ptpscript:functions:dump?do=diff1150508552
Dumps the contents of a value, where the value can be any data type. Syntax String dump( [ Mixed subject ] ) Parameters Mixed subject - The value to display the contents of. If omitted, the values of all variables in current scope will be di...text/html2006-06-17T02:36:48+01:00Dan Williams (dan@84.9.166.115)Mixed - created
http://sdp.soapi.com/ptpscript:types:mixed?do=diff1150508208
The word "mixed" is simply used where more than one data type can be used; for instance, a function that accepts a Number or Boolean as one of its parameters, rather than just a Number. ...text/html2006-06-14T16:00:30+01:00Dan Williams (dan@84.9.166.115)sortmulti - created
http://sdp.soapi.com/ptpscript:functions:sortmulti?do=diff1150297230
Sort an Array according to columns. Syntax Array sortmulti( Array subject, Array options [, Boolean preserve ] ) Array options ( Array option [, ... ] ) Array option ( Mixed column [, Boolean reverse [, Number method ] ] ) Parameters Arr...text/html2006-06-14T11:26:21+01:00Dan Williams (dan@84.9.166.115)sort
http://sdp.soapi.com/ptpscript:functions:sort?do=diff1150280781
Sort an Array. Syntax Array sort( Array subject [, Boolean reverse [, Boolean preserve [, Boolean byKey [, Boolean safe [, Number method ] ] ] ] ] ) Parameters Array subject - The Array to sort. Boolean reverse - Whether to reverse the sort...text/html2006-06-14T11:03:41+01:00Dan Williams (dan@84.9.166.115)String Comparison Directives
http://sdp.soapi.com/ptpscript:directives:string_comparison?do=diff1150279421
String comparison Directives alter the behaviour of the String Comparison Operators. Directive Description StandardComparison Compare items using standard comparison NumericComparison Compare items numerically StringComparison Compar...text/html2006-06-14T10:58:50+01:00Dan Williams (dan@84.9.166.115)compare
http://sdp.soapi.com/ptpscript:functions:compare?do=diff1150279130
Compare two values. Syntax Number compare( Mixed term1, Mixed term2 [, Number method [, Number length ] ] ) Parameters Mixed term1 - The first term. Mixed term2 - The second term. Number method - Sort method options. 0 (default) - Compare...text/html2006-06-01T00:18:14+01:00Dan Williams (dan@84.9.166.115)Errors - created
http://sdp.soapi.com/ptpscript:errors?do=diff1149117494
There is no way to handle errors through PTPScript - appropriate errors will be flagged in the PHP backend and should be handled by the PHP programmer. However, there are a few notes worth making. When an error is flagged, the template file that th...text/html2006-05-30T21:36:58+01:00Dan Williams (dan@84.9.166.115)Include Command - created
http://sdp.soapi.com/ptpscript:commands:include?do=diff1149021418
The Include command allows additional template files or sections to be included into the current template. Each included file or section is parsed as a separate entity, and its resulting output inserted into the current template output. This means t...text/html2006-05-30T10:06:23+01:00Dan Williams (dan@84.9.166.115)ptpscript:basic_syntax:comments_discussion:comments
http://sdp.soapi.com/ptpscript:basic_syntax:comments_discussion:comments?do=diff1148979983
Umang Beri Umang Beri, 2006/05/30 03:09: Do you think it would be worth having a way to end the comments? Is this an upcoming feature - or not necessary? Dan Williams Dan Williams, 2006/05/30 10:06: Because the logic in placeholders is so short ...text/html2006-05-29T23:33:49+01:00Dan Williams (dan@84.9.166.115)Whitespace Suppression Directives - created
http://sdp.soapi.com/ptpscript:directives:whitespace_suppression?do=diff1148942029
Whitespace suppression Directives alter the behaviour of the whitespace suppression symbols. Directive Description Linebreaks NoLinebreakSuppression Linebreaks will not be suppressed when the symbols are used LinebreakSuppression Sin...