Overview

Packages

  • ClipIt
    • clipit
      • api
    • urjc
      • backend
  • Elgg
    • Core
      • Access
      • Authentication
      • Cache
      • Caches
      • Core
      • DataMode
        • Site
      • DataModel
        • Annotations
        • Entities
        • Extender
        • File
        • Importable
        • Loggable
        • Notable
        • Object
        • User
      • DataStorage
      • Exception
      • Exceptions
        • Stub
      • FileStore
        • Disk
      • Groups
      • Helpers
      • HMAC
      • Memcache
      • Metadata
      • Navigation
      • ODD
      • Output
      • Plugins
        • Settings
      • Sessions
      • SocialModel
        • Friendable
        • Locatable
      • WebServicesAPI
      • Widgets
      • XML
      • XMLRPC
    • Exceptions
      • Stub
  • None
  • PHP

Interfaces

  • Loggable
  • Overview
  • Package
  • Class
  • Tree

Interface Loggable

Interface that provides an interface which must be implemented by all objects wishing to be recorded in the system log (and by extension the river).

This interface defines a set of methods that permit the system log functions to hook in and retrieve the necessary information and to identify what events can actually be logged.

To have events involving your object to be logged simply implement this interface.

Direct known implementers

ElggData

Indirect known implementers

ElggAnnotation, ElggEntity, ElggUser, ElggWidget, ElggExtender, ElggFile, ElggGroup, ElggMetadata, ElggObject, ElggPlugin, ElggRelationship, ElggSite
Package: Elgg\Core\DataModel\Loggable
Located at Loggable.php
Methods summary
public integer
# getSystemLogID( )

Return an identification for the object for storage in the system log. This id must be an integer.

Return an identification for the object for storage in the system log. This id must be an integer.

Returns

integer
public string
# getClassName( )

Return the class name of the object. Added as a function because get_class causes errors for some reason.

Return the class name of the object. Added as a function because get_class causes errors for some reason.

Returns

string
public string
# getType( )

Return the type of the object - eg. object, group, user, relationship, metadata, annotation etc

Return the type of the object - eg. object, group, user, relationship, metadata, annotation etc

Returns

string
public string
# getSubtype( )

Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type.

Return a subtype. For metadata & annotations this is the 'name' and for relationship this is the relationship type.

Returns

string
public ElggEntity
# getObjectFromID( integer $id )

For a given ID, return the object associated with it. This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.

For a given ID, return the object associated with it. This is used by the river functionality primarily. This is useful for checking access permissions etc on objects.

Parameters

$id
integer
$id GUID of an entity

Returns

ElggEntity
API documentation generated by ApiGen 2.8.0