TIP_Expiration

Introduction

Expiration module

Source file
/Type/module/content/expiration.php
Extends
TIP_Content

Extends the content module by implementing the additional "expiration" feature. Any row has an "EXPIRED" calculated boolean field based on the "expiration_field" (a date field) and the "expiration" value (a time displacement in any format accepted by the strtotime() function).

Additionaly, a flag system is available, although not enabled by default. This feature allows the "flag" and "unflag" actions, useful for instance to signal suspicious content. The flag system has full statistical hooks for keeping track of counter values on a user basis.

Properties

expiration_field : string

The field owning the expiration time

access
protected

flag_field : string

The field containing the optional boolean flag

access
protected

flagger_field : string

The field referring to the user who flagged

access
protected

flagon_field : string

The field containing the flagging date

access
protected

flaggee_field : string

The field in user containing statistic on how many time the

access
protected

user performed a flag action

flagged_field : string

The field in user containing statistic on how many time a

access
protected

user received a flag action

unflaggee_field : string

The field in user containing statistic on how many time the

access
protected

user performed an unflag action

unflagged_field : string

The field in user containing statistic on how many time a

access
protected

user received an unflag action

expiration : string

The default expiration time

access
protected

Methods

__construct ($options)

Constructor

$options
array
Properties values
lines
110 - 113
access
protected

Initializes a TIP_Expiration instance.

actionFlag ($id, [$options])

$id
$options
[ = null ]
lines
295 - 303
access
protected

actionUnflag ($id, [$options])

$id
$options
[ = null ]
lines
305 - 313
access
protected

actionRefresh ($id, [$options])

$id
$options
[ = null ]
lines
315 - 323
access
protected

runAdminAction ($action)

$action
lines
326 - 342
access
protected

runTrustedAction ($action)

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