5.3. ORM

Top  Previous  Next

field_types/ - folder for templates of field types

input/ - folder for the field types input templates

o

boolean.tpl - template for Boolean type

Local variables:

$id  -  field ID

$value  -  field value

o

list.tpl - template for List type

Local variables:

$id  -  field ID

$value  -  field value

$list_values  -  the array of all the available values of List type where each element is an array with elements of this value 'id' and 'caption'    

o

string.tpl - template for String type

Local variables:

$id  -  field ID

$value  -  field value

o

text.tpl - template for Text type

Local variables:

$id  -  field ID

$value  -  field value

o

password.tpl - template for Password type

Local variables:

$id  -  field ID

o

tree.tpl - template for Tree type

Local variables:

$id  -  field ID

$value  -  field value

$tree_values  -  the key is parent sid, the value is the array of child elements, each of them is the array contained information about an element of the tree (caption, sid, level, order, parent_sid, field_sid)

$tree_depth  -  the number of tree levels

$display_value  -  the list of values (heading) for an element stating from the root  

o

file.tpl - template for File type

Local variables:

$id  -  field ID

$value  -  the array where 'file_url' is the URL to download a file, 'file_name' is the file name

o

video.tpl - template for Video type

Local variables:

$id  -  field ID

$value  -  the array where 'file_url' is the URL to download a video file, 'file_name' is the video file name

 

display/ - folder for the field types display templates

o

boolean.tpl - template for Boolean type

Local variables: see 'boolean.tpl' in the input folder

o

list.tpl - template for List type

Local variables: see 'list.tpl' in the input folder

o

string.tpl - template for String type

Local variables: see 'string.tpl' in the input folder

o

text.tpl - template for Text type

Local variables: see 'text.tpl' in the input folder

o

tree.tpl - template for Tree type

Local variables: see 'tree.tpl' in the input folder

o

file.tpl - template for File type

Local variables: see 'file.tpl' in the input folder

o

video.tpl - template for Video type

Local variables: see 'video.tpl' in the input folder

o

pictures.tpl - template for Pictures type

Local variables:

$pictures  -  the array where each element contains information about a picture (thumbnail_url, picture_url, caption)

 

search/ - folder for the field types search templates

o

boolean.tpl - template for Boolean type

Local variables: see 'boolean.tpl' in the input folder

o

list.tpl - template for List type

Local variables: see 'list.tpl' in the input folder

o

string.tpl - template for String type

Local variables: see 'string.tpl' in the input folder

o

text.tpl - template for Text type

Local variables: see 'text.tpl' in the input folder

o

tree.tpl - template for Tree type

Local variables: see 'tree.tpl' in the input folder

o

file.tpl - template for File type

Local variables: see 'file.tpl' in the input folder

o

video.tpl - template for Video type

Local variables: see 'video.tpl' in the input folder

o

pictures.tpl - template for Pictures type

Local variables:

$id  -  field ID

$value  -  field value