Open Journal Systems  3.3.0
COUNTER\ReportItems Class Reference
Inheritance diagram for COUNTER\ReportItems:
COUNTER\ReportBuilder

Public Member Functions

 __construct ($itemPlatform, $itemName, $itemDataType, $itemPerformance, $parentItem=NULL, $itemIdentifiers=array(), $itemContributors=array(), $itemDates=array(), $itemAttributes=array(), $itemPublisher='')
 
 asDOMDocument ()
 
- Public Member Functions inherited from COUNTER\ReportBuilder
 __toString ()
 

Static Public Member Functions

static build ($array)
 

Additional Inherited Members

- Data Fields inherited from COUNTER\ReportBuilder
const COUNTER_NAMESPACE = 'http://www.niso.org/schemas/counter'
 
- Protected Member Functions inherited from COUNTER\ReportBuilder
 buildMultiple ($classname, $array)
 
 getAttributeTypes ()
 
 getCategories ()
 
 getContributorIdentifierTypes ()
 
 getDateTypes ()
 
 getIdentifierTypes ()
 
 getItemDataTypes ()
 
 getMetricTypes ()
 
 validateOneOf ($object, $className)
 
 validateOneOrMoreOf ($objects, $className)
 
 validatePositiveInteger ($int)
 
 validateString ($string)
 
 validateStrings ($array)
 
 validateZeroOrMoreOf ($objects, $className)
 
 validateZeroOrOneOf ($object, $className)
 
- Static Protected Member Functions inherited from COUNTER\ReportBuilder
static isAssociative ($array)
 

Detailed Description

COUNTER report item class

Definition at line 984 of file COUNTER.php.

Constructor & Destructor Documentation

◆ __construct()

COUNTER\ReportItems::__construct (   $itemPlatform,
  $itemName,
  $itemDataType,
  $itemPerformance,
  $parentItem = NULL,
  $itemIdentifiers = array(),
  $itemContributors = array(),
  $itemDates = array(),
  $itemAttributes = array(),
  $itemPublisher = '' 
)

Construct the object

Parameters
string$itemPlatform
string$itemName
string$itemDataType
array$itemPerformanceCOUNTER\Metric array
object$parentItemoptional COUNTER\ParentItem
array$itemIdentifiersoptional COUNTER\Identifier array
array$itemContributorsoptional COUNTER\Contributor array
array$itemDatesoptional COUNTER\Date array
array$itemAttributesoptional COUNTER\ItemAttribute array
string$itemPublisheroptional
Returns
void
Exceptions
Exception

Definition at line 1081 of file COUNTER.php.

References COUNTER\ReportBuilder\getItemDataTypes(), COUNTER\ReportBuilder\validateOneOrMoreOf(), COUNTER\ReportBuilder\validateString(), COUNTER\ReportBuilder\validateZeroOrMoreOf(), and COUNTER\ReportBuilder\validateZeroOrOneOf().

Member Function Documentation

◆ asDOMDocument()

COUNTER\ReportItems::asDOMDocument ( )

Output this object as a DOMDocument

Returns
DOMDocument

Reimplemented from COUNTER\ReportBuilder.

Definition at line 1132 of file COUNTER.php.

◆ build()

static COUNTER\ReportItems::build (   $array)
static

Construct the object from an array

Parameters
array$arrayHash of key-values
Returns
\self
Exceptions
Exception

Reimplemented from COUNTER\ReportBuilder.

Definition at line 1102 of file COUNTER.php.

References COUNTER\ParentItem\build().


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