Open Journal Systems  3.3.0
COUNTER Namespace Reference

Data Structures

class  Consortium
 
class  Contact
 
class  Customer
 
class  DateRange
 
class  Identifier
 
class  ItemAttribute
 
class  ItemContributor
 
class  ItemContributorId
 
class  ItemDate
 
class  Metric
 
class  ParentItem
 
class  PerformanceCounter
 
class  Report
 
class  ReportBuilder
 
class  ReportItems
 
class  Reports
 
class  Vendor
 

Detailed Description

COUNTER Reports classes, release 4.1 Represents the COUNTER XSD schema in class form Clinton Graham, University of Pittsburgh Library System, University of Pittsburgh ctgra.nosp@m.ham@.nosp@m.pitt..nosp@m.edu +1-412-383-1057 2015 University of Pittsburgh http://www.gnu.org/licenses/gpl-2.0.html GPL 2.0 or later 0.3 DESCRIPTION This is a set of classes to represent the Project COUNTER schema ( http://www.projectcounter.org/ ) It is basically an ecapsulation of DOMDocument, with type checking. Construct any object, then cast it as a string to retrieve the XML, or call asDOMDocument() to retrieve the DOM. $report = new COUNTER( 'reportId', 'reportVersion', 'reportName', 'reportTitle', new COUNTER( 'customerId', new COUNTER( 'itemPlatform', 'itemName', 'Journal', array( new COUNTER( new COUNTER(date_create("first day of previous month"), date_create("last day of previous month")), 'Requests', array(new COUNTER('ft_html', 128), new COUNTER('ft_pdf', 129)) ), new COUNTER( new COUNTER(date_create("first day of this month"), date_create("last day of this month")), 'Requests', new COUNTER('other', 121) ) ) ) ), new COUNTER('vendorId') ); print $report;