Class: atkCustomRecordList
Source Location: /recordlist/class.atkcustomrecordlist.inc
Class atkCustomRecordList
Method Summary
| void |
eolreplace() |
Replace any eol character(s) by something else |
| bool |
isHidden() |
Is this attribute hidden? |
| void |
render() |
Creates a special Recordlist that can be used for exporting to files or to make it printable |
Properties
Redefined in descendants as:
Methods
void eolreplace(
String
$string, String
$replacement
)
|
|
Replace any eol character(s) by something else
Parameters:
|
String |
$string: |
The string to process |
|
String |
$replacement: |
The replacement string for '\r\n', '\n' and/or '\r' |
Is this attribute hidden?
Parameters:
API Tags:
| Return: | Boolean to indicate if attribute is hidden or not |
| Access: | protected |
void render(
&$node, array
$recordset, String
$sol, String
$sof, String
$eof, String
$eol, [int
$type = "0"], [string
$compression = ""], [array
$suppressList = ""], [array
$outputparams = array()], [String
$mode = "list"], [Boolean
$titlerow = true], [Boolean
$decode = false], [String
$fsep = ""], [String
$rfeplace = null], atkNode
$node
)
|
|
Creates a special Recordlist that can be used for exporting to files or to make it printable
Parameters:
|
atkNode |
$node: |
The node to use as definition for the columns. |
|
array |
$recordset: |
The records to render |
|
String |
$sol: |
String to use at start of each row |
|
String |
$sof: |
String to use at start of each field |
|
String |
$eof: |
String to use at end of each field |
|
String |
$eol: |
String to use at end of each row |
|
int |
$type: |
0=Render rows in simple html tabl; 1= raw export |
|
string |
$compression: |
Compression technique (bzip / gzip) |
|
array |
$suppressList: |
List of attributes from $node that should be ignored |
|
array |
$outputparams: |
Key-Value parameters for output. Currently existing: filename - the name of the file (without extension .csv) |
|
String |
$mode: |
The mode that is passed to attributes' display() method (for overrides). Defaults to 'list'. |
|
Boolean |
$titlerow: |
Should titlerow be rendered or not |
|
Boolean |
$decode: |
Should data be decoded or not (for exports) |
|
String |
$fsep: |
String to use between fields |
|
String |
$rfeplace: |
String for replacing line feeds in recordset field values (null = do not replace) |
|
|
&$node: |
|
Redefinition of:
- atkRecordList::render()
- Render the recordlist
Redefined in descendants as:
void setExportingCSVToFile(
[bool
$export = true]
)
|
|
Set exporting csv to file
Parameters: