Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static | parseStr ($string, &$array) |
static | prepInput (&$data) |
static | prepOutput (&$data) |
static | UTCDate ($timestamp=0, $includeTime=true) |
static | UTCtoTimestamp ($date, $requiredGranularity=null) |
Definition at line 18 of file OAIUtils.inc.php.
|
static |
Parses string $string into an associate array $array. Acts like parse_str($string, $array) except duplicate variable names in $string are converted to an array.
$duplicate | string input data string |
$array | array of parsed parameters |
Definition at line 123 of file OAIUtils.inc.php.
Referenced by OAI\__construct().
|
static |
Clean input variables (by reference).
$data | mixed request parameter(s) |
Definition at line 77 of file OAIUtils.inc.php.
Referenced by OAI\__construct().
|
static |
Prepare variables for output (by reference). Data is assumed to be UTF-8 encoded (FIXME?)
$data | mixed output parameter(s) |
Definition at line 99 of file OAIUtils.inc.php.
Referenced by PKPOAIMetadataFormat_DC\formatElement(), OAIMetadataFormat_RFC1807\formatElement(), OAI\Identify(), OAI\ListIdentifiers(), OAI\ListRecords(), OAI\ListSets(), and OAI\response().
|
static |
Return a UTC-formatted datestamp from the specified UNIX timestamp.
$timestamp | int *nix timestamp (if not used, the current time is used) |
$includeTime | boolean include both the time and date |
Definition at line 26 of file OAIUtils.inc.php.
Referenced by PKPOAIDAO\_doCommonOAIFromRowOperations(), OAI\Identify(), OAI\ListIdentifiers(), OAI\ListRecords(), OAI\ListSets(), and OAI\response().
|
static |
Returns a UNIX timestamp from a UTC-formatted datestamp. Returns the string "invalid" if datestamp is invalid, or "invalid_granularity" if unsupported granularity.
$date | string UTC datestamp |
$requiredGranularity | string Datestamp granularity to require (default: not checked) |
Definition at line 48 of file OAIUtils.inc.php.
Referenced by OAI\extractDateParams(), and PKPOAIDAO\getEarliestDatestamp().