DOCGEN of code/functions/views.js
Views functions
void | Views.IF() | |
void | Views.ELSE() | |
void | Views.ADMINGETL() | |
String | Views.ENCODE(value) | |
String | Views.ENCODE_CSS(value) | |
String | Views.HRtoCOLS(value) | |
String | Views.JSONFMT(value) | |
String | Views.JSON(value) | |
void | Views.JSON_ENCODE() | |
Intger | Views.ADD(param, value) | |
void | Views.SUB() | |
void | Views.MUL() | |
void | Views.MUL1() | |
void | Views.CROP() | |
void | Views.LI() | |
void | Views.B() | |
void | Views.MinusTags() | |
void | Views.Bminus() | |
void | Views.P() | |
void | Views.Pminus() | |
void | Views.Ponly() | |
void | Views.T() | |
void | Views.I() | |
void | Views.JS() | |
void | Views.DumpierNoPre() | |
void | Views.Dumper() | |
void | Views.process() | |
void | Views.CHK() | |
void | Views.O() | |
void | Views.OGRP() | |
void | Views.OATR() | |
void | Views.L(grp, val, easyDefault) | |
void | Views.preview() | |
void | Views.previewState() | |
void | Views.replace() | |
void | Views.match() | |
void | Views.full_replace() | |
void | Views.format() | |
void | Views.page_block(place_code, page_id) | |
void | Views.translit() | |
void | Views.CL() | |
void | Views.CF() | |
void | Views.CB() | |
void | Views.URC() |
void Views.IF()
void Views.ELSE()
void Views.ADMINGETL()
String Views.ENCODE(value)
Returns encodeURIComponent(value)
Parameters | ||||
---|---|---|---|---|
value | String | |||
Returns | ||||
String |
String Views.ENCODE_CSS(value)
Returns encodeURIComponent(value) with symbols ()'" replaced by %XX codes
Parameters | ||||
---|---|---|---|---|
value | String | |||
Returns | ||||
String |
String Views.HRtoCOLS(value)
Returns value reformatted to <div class="cols"><div class="col">Sometext</div><div class="col">Sometext</div>...<div class="cl"></div></div>
Parameters | ||||
---|---|---|---|---|
value | String | |||
Returns | ||||
String |
String Views.JSONFMT(value)
Returns JSON, reformatted to avoid a string "</script>" bug/feature.
Parameters | ||||
---|---|---|---|---|
value | String | |||
Returns | ||||
String |
String Views.JSON(value)
Returns JSON
Parameters | ||||
---|---|---|---|---|
value | String | |||
Returns | ||||
String |
void Views.JSON_ENCODE()
Intger Views.ADD(param, value)
Returns param+value
Parameters | ||||
---|---|---|---|---|
param | Integer | |||
value | Integer | |||
Returns | ||||
Intger |
void Views.SUB()
void Views.MUL()
void Views.MUL1()
void Views.CROP()
void Views.LI()
void Views.B()
void Views.MinusTags()
void Views.Bminus()
void Views.P()
void Views.Pminus()
void Views.Ponly()
void Views.T()
void Views.I()
void Views.JS()
void Views.DumpierNoPre()
void Views.Dumper()
void Views.process()
void Views.CHK()
void Views.O()
void Views.OGRP()
void Views.OATR()
void Views.L(grp, val, easyDefault)
Parameters | ||||
---|---|---|---|---|
grp | String | |||
val | String | |||
easyDefault | Integer | 0=returns error, 1=tries ("generic",val,2), 2=returns val, 3=returns undefined |
void Views.preview()
void Views.previewState()
void Views.replace()
void Views.match()
void Views.full_replace()
передаем два текстовых параметра в виде строки с разделителем ","
ищем совпадение первого параметра и если оно есть возвращаем второй параметр
пример: {{full_replace("menu,itemA"):pageinfo.alias}}
ищем совпадение первого параметра и если оно есть возвращаем второй параметр
пример: {{full_replace("menu,itemA"):pageinfo.alias}}
void Views.format()
void Views.page_block(place_code, page_id)
Returns page block
Can be called from templates as {{page_block("abstract_block"):page.id}}
Can be called from templates as {{page_block("abstract_block"):page.id}}
Parameters | ||||
---|---|---|---|---|
place_code | String | value from Ttemplate_places.code | ||
page_id | Integer | value from Tpages.id |
void Views.translit()
void Views.CL()
выводит o в консольную строку браузера
void Views.CF()
clear format
void Views.CB()
clear format
void Views.URC()