Documentation is available at PrimitiveIO_Authoritative_datetime.class.php
- <?php
- /**
- * @package polyphony.datamanager_gui
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: PrimitiveIO_Authoritative_datetime.class.php,v 1.4 2007/09/19 14:04:44 adamfranco Exp $
- */
- /**
- *
- *
- * @package polyphony.datamanager_gui
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: PrimitiveIO_Authoritative_datetime.class.php,v 1.4 2007/09/19 14:04:44 adamfranco Exp $
- */
- class PrimitiveIO_Authoritative_datetime
- extends PrimitiveIO_Authoritative
- /* implements PrimitiveIO */
- {
- function PrimitiveIO_Authoritative_datetime() {
- // $this->setErrorText(dgettext("polyphony", "Enter a date/time string. (example: YYYY-MM-DD HH:MM:SS)"));
- // $this->setErrorRule(new WECNonZeroRegex("[\\w]+"));
- }
- /**
- * Returns true if this component (and all child components if applicable) have valid values.
- * By default, this will just return TRUE. Validate should be called usually before a save event
- * is handled, to make sure everything went smoothly.
- * @access public
- * @return boolean
- */
- function validate () {
- $parse = StringParser::getParserFor($this->_value);
- if (!$parse) {
- $this->_showError = true;
- return false;
- }
- return true;
- }
- /**
- * Returns the values of wizard-components. Should return an array if children are involved,
- * otherwise a whatever type of object is expected.
- * @access public
- * @return mixed
- */
- function getAllValues () {
- $obj = DateAndTime::fromString($this->_value);
- return $obj;
- }
- }
Documentation generated on Wed, 19 Sep 2007 10:25:37 -0400 by phpDocumentor 1.3.0RC3