Stud.IP  3.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
LogEvent Class Reference
Inheritance diagram for LogEvent:
Inheritance graph
Collaboration diagram for LogEvent:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 formatEvent ()
- Public Member Functions inherited from SimpleORMap
 __clone ()
 getRelationOptions ($relation)
 getTableMetadata ()
 hasAutoIncrementColumn ()
 setId ($id)
 getId ()
 getNewId ()
 toArray ($only_these_fields=null)
 toArrayRecursive ($only_these_fields=null)
 getValue ($field)
 getRelationValue ($relation, $field)
 setValue ($field, $value)
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 getIterator ()
 count ()
 isField ($field)
 isAdditionalField ($field)
 isAliasField ($field)
 setData ($data, $reset=false)
 haveData ()
 isNew ()
 isDeleted ()
 setNew ($is_new)
 getWhereQuery ()
 restore ()
 store ()
 triggerChdate ()
 delete ()
 isDirty ()
 isFieldDirty ($field)
 revertValue ($field)
 getPristineValue ($field)
 initRelation ($relation)
 resetRelation ($relation)

Static Public Member Functions

static countByActions ()
static deleteExpired ()
- Static Public Member Functions inherited from SimpleORMap
static expireTableScheme ()
static find ($id)
static exists ($id)
static countBySql ($where=1, $params=array())
static create ($data)
static import ($data)
static findBySQL ($where, $params=array())
static findThru ($foreign_key_value, $options)
static findEachBySQL ($callable, $where, $params=array())
static findMany ($pks=array(), $order= '', $order_params=array())
static findEachMany ($callable, $pks=array(), $order= '', $order_params=array())
static findAndMapBySQL ($callable, $where, $params=array())
static findAndMapMany ($callable, $pks=array(), $order= '', $order_params=array())
static deleteBySQL ($where, $params=array())
static toObject ($id_or_object)
static __callStatic ($name, $arguments)

Protected Member Functions

 formatResource ($field)
 formatUsername ($field)
 formatSeminar ($field)
 formatInstitute ($field)
 formatStudyarea ($field)
 formatSingledate ($field)
 formatPlugin ($field)
 formatSemester ($field)
 formatObject ()
- Protected Member Functions inherited from SimpleORMap
 parseRelationOptions ($type, $name, $options)
 getTableScheme ()
 storeRelations ()
 deleteRelations ()
 initializeContent ()
 applyCallbacks ($type)
 registerCallback ($types, $cb)
 unregisterCallback ($types, $cb)
 cbAutoIncrementColumn ($type)
 cbAutoKeyCreation ()
 cbNotificationMapper ($cb_type)

Protected Attributes

 $formatted_text = ''
- Protected Attributes inherited from SimpleORMap
 $content = array()
 $content_db = array()
 $is_new = true
 $db_table = ''
 $db_fields = null
 $pk = null
 $default_values = array()
 $alias_fields = array()
 $additional_fields = array()
 $relations = array()
 $has_many = array()
 $has_one = array()
 $belongs_to = array()
 $has_and_belongs_to_many = array()
 $registered_callbacks
 $known_slots = array()
 $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id')
 $notification_map = array()

Additional Inherited Members

- Static Protected Member Functions inherited from SimpleORMap
static tableScheme ($db_table)
- Static Protected Attributes inherited from SimpleORMap
static $schemes

Constructor & Destructor Documentation

__construct (   $id = null)

constructor, give primary key of record as param to fetch corresponding record from db if available, if not preset primary key with given value. Give null to create new record

Parameters
mixed$idprimary key of table

Reimplemented from SimpleORMap.

Member Function Documentation

static countByActions ( )
static

Returns the number of log events counted by actions as an array where the ey is the action id and the value is the number of events for this action.

Returns
array Number of loge events for all actions

Here is the call graph for this function:

Here is the caller graph for this function:

static deleteExpired ( )
static

Deletes all expired events.

Returns
int Number of deleted events.

Here is the call graph for this function:

Here is the caller graph for this function:

formatEvent ( )

Returns the formatted log event. Fills the action template with data of this event.

Returns
string The formatted log event.

Here is the call graph for this function:

formatInstitute (   $field)
protected

Returns the name of the institute for the id found in the given field or the id if the institute is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of institute or the id.

Here is the call graph for this function:

formatObject ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

formatPlugin (   $field)
protected

Returns the name of the plugin for the id found in the given field or the id if the plugin is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of plugin or the id.

Here is the call graph for this function:

formatResource (   $field)
protected

Returns the name of the resource for the resource id found in the given field or the resource id if the resource is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of the resource or resource id.

Here is the call graph for this function:

formatSemester (   $field)
protected

Returns the name of the semester for the id found in the given field or the id if the seminar is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of semester or the id.
formatSeminar (   $field)
protected

Returns the name of the seminar for the id found in the given field or the id if the seminar is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of seminar or the id.

Here is the call graph for this function:

formatSingledate (   $field)
protected

Returns the singledate for the id found in the given field.

Parameters
string$fieldThe name of the table field.
Returns
string The singledate.
formatStudyarea (   $field)
protected

Returns the name of the study area for the id found in the given field or the id if the study area is unknown.

Parameters
string$fieldThe name of the table field.
Returns
string The name of seminar or the id.

Here is the call graph for this function:

formatUsername (   $field)
protected

Returns the name of the user with the id found in the given field.

Parameters
string$fieldThe name of the table field.
Returns
string The name of the user.

Here is the call graph for this function:

Field Documentation

$formatted_text = ''
protected

The documentation for this class was generated from the following file: