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

Classes

  • ODD
  • ODDDocument
  • ODDEntity
  • ODDMetaData

Interfaces

  • Exportable
  • Overview
  • Package
  • Class
  • Tree

Class ODD

Open Data Definition (ODD) superclass.

Direct known subclasses

ODDEntity, ODDMetaData, ODDRelationship
Abstract
Package: Elgg\Core\ODD
Located at ODD.php
Methods summary
public
# __construct( )

Construct an ODD document with initial values.

Construct an ODD document with initial values.

public array
# getAttributes( )

Returns an array of attributes

Returns an array of attributes

Returns

array
public
# setAttribute( string $key, mixed $value )

Sets an attribute

Sets an attribute

Parameters

$key
string
$key Name
$value
mixed
$value Value
public mixed
# getAttribute( string $key )

Returns an attribute

Returns an attribute

Parameters

$key
string
$key Name

Returns

mixed
public
# setBody( mixed $value )

Sets the body of the ODD.

Sets the body of the ODD.

Parameters

$value
mixed
$value Value
public mixed
# getBody( )

Gets the body of the ODD.

Gets the body of the ODD.

Returns

mixed
public
# setPublished( integer $time )

Set the published time.

Set the published time.

Parameters

$time
integer
$time Unix timestamp
public integer
# getPublishedAsTime( )

Return the published time as a unix timestamp.

Return the published time as a unix timestamp.

Returns

integer
or false on failure.
abstract protected string
# getTagName( )

For serialisation, implement to return a string name of the tag eg "header" or "metadata".

For serialisation, implement to return a string name of the tag eg "header" or "metadata".

Returns

string
public string
# __toString( )

Magic function to generate valid ODD XML for this item.

Magic function to generate valid ODD XML for this item.

Returns

string
API documentation generated by ApiGen 2.8.0