TIP_Chronology

Introduction

A tree based on a date field

Source file
/Type/chronology.php
Extends
TIP_Type

Properties

master : TIP_Content

A reference to the master content module

access
protected

date_field : string

The hierarchy field

access
protected

The field id to parse for the date and to use as index for the hierarchy.

title_field : string|array

Title field

access
protected

The field to show in the leaf nodes. This can be an array of field ids, in which case the string will be a comma separated list of the values.

tooltip_field : string|array

Tooltip field

access
protected

The field to show as tooltip for the leaf nodes. This can be an array of field ids, as for 'title_field'

count_field : string

The field that forces a specified order

access
protected

action : string

The action for this chronology

access
protected

levels : int

Maximum number of levels to keep online

access
protected

Methods

checkOptions (&$options)

&$options
lines
86 - 103
static
yes
access
protected

__construct ($options)

Constructor

$options
array
Properties values
lines
112 - 115
access
protected

Initializes a TIP_Chronology instance.

toHtml () : string

Render this chronology in XHTML format

lines
124 - 144
access
public

actionBrowse ($id) : bool

Perform a browse action

$id
lines
159 - 191
access
protected

In $conditions, you must specify an associative array of 'field_id' => 'value' to impose for this browse action. Only equal conditions are allowed.

runAction ($action)

$action
lines
193 - 208
access
protected
TIP_Chronology was last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST
Hosted by BerliOS Developer Logo