TIP_Class

Introduction

Class module

Source file
/Type/module/content/class.php
Extends
TIP_Content
since
0.3.0

Properties

class_field : string

The field to be used to identify the child module

access
protected

master_field : string

The field in the child module to be joined to this class primary key

access
protected

Methods

__construct ($options)

Constructor

$options
array
Properties values
lines
53 - 57
access
protected

Initializes a TIP_Class instance.

tagView ($params) : string|null

Overriden method including the child fields in the frozen form

$params
string
Parameters of the tag
lines
70 - 99
access
protected

actionAdd ([$id], [$options]) : bool

Perform an add action

$id
mixed [ = null ]
The identifier of the row to duplicate (not used)
$options
array [ = array() ]
Options to pass to the form() call
lines
116 - 180
access
protected

Overrides the default add action, chaining the child module form if the class form validates.

actionEdit ($id, [$options]) : bool

Perform an edit action

$id
mixed
The identifier of the row to edit
$options
array [ = array() ]
Options to pass to the form() call
lines
192 - 238
access
protected

Overrides the default edit action, merging master and child fields to build an unique form. The class field is frozen.

actionDelete ($id, [$options]) : bool

Perform a delete action

$id
mixed
The identifier of the row to delete
$options
array [ = array() ]
Options to pass to the form() call
lines
250 - 293
access
protected

Overrides the default delete action by showing a merged form between master and child data.

getData () : TIP_Data

Overrides the default getData() returning $_current_data

lines
303 - 306
access
public

fromRow ([$id], [$end_view]) : &array|null

Get a specific row

$id
mixed [ = null ]
The row id
$end_view
bool [ = true ]
Whether to end the view or not
lines
318 - 338
access
public

Overrides the default method to merge also the child row fields to the returned array.

TIP_Class was last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST
Hosted by BerliOS Developer Logo