Open Journal Systems
3.3.0
|
Public Member Functions | |
__toString () | |
asDOMDocument () | |
Static Public Member Functions | |
static | build ($array) |
Data Fields | |
const | COUNTER_NAMESPACE = 'http://www.niso.org/schemas/counter' |
Protected Member Functions | |
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 | |
static | isAssociative ($array) |
COUNTER report builder class Other classes in this package extend from this core class to have access to several generic functions
Definition at line 72 of file COUNTER.php.
COUNTER\ReportBuilder::__toString | ( | ) |
Output this object as XML Inherited by all children of this object; all children must implement asDOMDocument().
Definition at line 304 of file COUNTER.php.
References COUNTER\ReportBuilder\asDOMDocument().
COUNTER\ReportBuilder::asDOMDocument | ( | ) |
Do NOT Output this object as a DOMDocument This method must be implemented in the subclass
Exception |
Reimplemented in COUNTER\PerformanceCounter, COUNTER\DateRange, COUNTER\Metric, COUNTER\ItemAttribute, COUNTER\ItemDate, COUNTER\Identifier, COUNTER\ItemContributorId, COUNTER\ItemContributor, COUNTER\ParentItem, COUNTER\ReportItems, COUNTER\Consortium, COUNTER\Customer, COUNTER\Contact, COUNTER\Vendor, COUNTER\Report, and COUNTER\Reports.
Definition at line 315 of file COUNTER.php.
Referenced by COUNTER\ReportBuilder\__toString().
|
static |
Do NOT build this object This method must be implemented in the subclass Subclasses should call this method if unable to build the object in order to report an error.
Exception |
Reimplemented in COUNTER\PerformanceCounter, COUNTER\DateRange, COUNTER\Metric, COUNTER\ItemAttribute, COUNTER\ItemDate, COUNTER\Identifier, COUNTER\ItemContributorId, COUNTER\ItemContributor, COUNTER\ParentItem, COUNTER\ReportItems, COUNTER\Consortium, COUNTER\Customer, COUNTER\Contact, COUNTER\Vendor, COUNTER\Report, and COUNTER\Reports.
Definition at line 325 of file COUNTER.php.
|
protected |
Given an classname and an array, call the $classname::build method and return the built object(s) The array can be associative (for a single object), or an array of associative arrays (for multiple objects)
string | $classname | |
array | $array |
Definition at line 226 of file COUNTER.php.
|
protected |
Return an array of valid Date Types
Definition at line 279 of file COUNTER.php.
Referenced by COUNTER\ItemAttribute\__construct().
|
protected |
Return an array of valid Categories
Definition at line 295 of file COUNTER.php.
Referenced by COUNTER\Metric\__construct().
|
protected |
Return an array of valid Contributor Identifier Types
Definition at line 261 of file COUNTER.php.
Referenced by COUNTER\ItemContributorId\__construct().
|
protected |
Return an array of valid Date Types
Definition at line 270 of file COUNTER.php.
Referenced by COUNTER\ItemDate\__construct().
|
protected |
Return an array of valid Identifier Types
Definition at line 253 of file COUNTER.php.
Referenced by COUNTER\Identifier\__construct().
|
protected |
Return an array of valid Item Data Types
Definition at line 245 of file COUNTER.php.
Referenced by COUNTER\ReportItems\__construct(), and COUNTER\ParentItem\__construct().
|
protected |
Return an array of valid Metric Types
Definition at line 287 of file COUNTER.php.
Referenced by COUNTER\PerformanceCounter\__construct().
|
staticprotected |
Check an array to see if it has associative (non-numeric) keys
array | $array |
Definition at line 215 of file COUNTER.php.
|
protected |
Validate that $object is a $className instance. If valid, return the object, otherwise, throw an exception
object | $object | |
string | $className | If no namespace specified, defaults to the COUNTER namespace |
Exception |
Definition at line 83 of file COUNTER.php.
Referenced by COUNTER\Report\__construct(), COUNTER\ItemDate\__construct(), COUNTER\Metric\__construct(), COUNTER\DateRange\__construct(), COUNTER\Reports\addReport(), COUNTER\ReportBuilder\validateOneOrMoreOf(), and COUNTER\ReportBuilder\validateZeroOrOneOf().
|
protected |
Validate that $objects is an array of $className instances. If valid, return the array, otherwise, throw an exception
object | $objects | |
string | $className |
Exception |
Definition at line 123 of file COUNTER.php.
References COUNTER\ReportBuilder\validateOneOf().
Referenced by COUNTER\Reports\__construct(), COUNTER\Report\__construct(), COUNTER\Customer\__construct(), COUNTER\ReportItems\__construct(), COUNTER\Metric\__construct(), and COUNTER\ReportBuilder\validateZeroOrMoreOf().
|
protected |
Validate that $yr is an integer. If valid, return the year, otherwise, throw an exception
int | $int |
Exception |
Definition at line 170 of file COUNTER.php.
Referenced by COUNTER\Metric\__construct(), and COUNTER\PerformanceCounter\__construct().
|
protected |
Validate that $string is string. If valid, return the string, otherwise, throw an exception
string | $string |
Exception |
Definition at line 184 of file COUNTER.php.
Referenced by COUNTER\Report\__construct(), COUNTER\Vendor\__construct(), COUNTER\Contact\__construct(), COUNTER\Customer\__construct(), COUNTER\Consortium\__construct(), COUNTER\ReportItems\__construct(), COUNTER\ParentItem\__construct(), COUNTER\ItemContributor\__construct(), COUNTER\ItemContributorId\__construct(), COUNTER\Identifier\__construct(), COUNTER\ItemDate\__construct(), COUNTER\ItemAttribute\__construct(), COUNTER\Metric\__construct(), COUNTER\PerformanceCounter\__construct(), and COUNTER\ReportBuilder\validateStrings().
|
protected |
Validate that $array is an array of strings. If valid, return the array, otherwise, throw an exception
array | $array |
Exception |
Definition at line 197 of file COUNTER.php.
References COUNTER\ReportBuilder\validateString().
Referenced by COUNTER\ItemContributor\__construct().
|
protected |
Validate that $objects is an array of $className instances, or is empty. If valid, return the array or empty, otherwise, throw an exception
object | $objects | |
string | $className |
Exception |
Definition at line 141 of file COUNTER.php.
References COUNTER\ReportBuilder\validateOneOrMoreOf().
Referenced by COUNTER\Vendor\__construct(), COUNTER\Customer\__construct(), COUNTER\ReportItems\__construct(), COUNTER\ParentItem\__construct(), and COUNTER\ItemContributor\__construct().
|
protected |
Validate that $object is a $className instance, or is empty. If valid, return the object or empty, otherwise, throw an exception
object | $object | |
string | $className |
Exception |
Definition at line 156 of file COUNTER.php.
References COUNTER\ReportBuilder\validateOneOf().
Referenced by COUNTER\Customer\__construct(), and COUNTER\ReportItems\__construct().
const COUNTER\ReportBuilder::COUNTER_NAMESPACE = 'http://www.niso.org/schemas/counter' |
Definition at line 74 of file COUNTER.php.