Documentation is available at HarmoniTimespan.class.php
- <?php
- //require_once(OKI2."/osid/scheduling/Timespan.php");
- //require_once(HARMONI."Primitives/Chronology/Timespan.class.php");
- /**
- * Timespan defines a time span in terms of a start and end date and time.
- * Warning! This extends a completely differnt Timespan, so thing may
- * get messy.
- *
- * <p>
- * OSID Version: 2.0
- * </p>
- *
- * <p>
- * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
- * O.K.I. OSID Definition License}.
- * </p>
- *
- * @package org.osid.scheduling
- */
- class HarmoniTimespan
- {
- /**
- * @variable long $_start the start of the time span
- * @access private
- * @variable long $_end the end of the time span
- * @access private
- ***/
- var $_start;
- var $_end;
- /**
- * The constructor.
- *
- * @param long $_start the start of the time span
- * @param long $_end the end of the time span
- *
- * @access public
- * @return void
- */
- function HarmoniTimespan($start, $end)
- {
- if($start>$end){
- throwError(new Error("The end of a Timespan cannot come before the end", "HarmoniTimespan", true));
- }
- $this->_start = $start;
- $this->_end = $end;
- }
- /**
- * Get the Start date and time of this Timespan.
- *
- * @return int
- *
- * @throws object SchedulingException An exception with one of
- * the following messages defined in
- * org.osid.scheduling.SchedulingException may be thrown: {@link }
- * org.osid.scheduling.SchedulingException#OPERATION_FAILED
- * OPERATION_FAILED}, {@link }
- * org.osid.scheduling.SchedulingException#PERMISSION_DENIED
- * PERMISSION_DENIED}, {@link }
- * org.osid.scheduling.SchedulingException#CONFIGURATION_ERROR
- * CONFIGURATION_ERROR}, {@link }
- * org.osid.scheduling.SchedulingException#UNIMPLEMENTED
- * UNIMPLEMENTED}
- *
- * @access public
- */
- function getStart () {
- return $this->_start;
- }
- /**
- * Get the End date and time of this Timespan.
- *
- * @return int
- *
- * @throws object SchedulingException An exception with one of
- * the following messages defined in
- * org.osid.scheduling.SchedulingException may be thrown: {@link }
- * org.osid.scheduling.SchedulingException#OPERATION_FAILED
- * OPERATION_FAILED}, {@link }
- * org.osid.scheduling.SchedulingException#PERMISSION_DENIED
- * PERMISSION_DENIED}, {@link }
- * org.osid.scheduling.SchedulingException#CONFIGURATION_ERROR
- * CONFIGURATION_ERROR}, {@link }
- * org.osid.scheduling.SchedulingException#UNIMPLEMENTED
- * UNIMPLEMENTED}
- *
- * @access public
- */
- function getEnd () {
- return $this->_end;
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:24:23 -0400 by phpDocumentor 1.3.0RC3