Miles Crawford > Solstice > Solstice::Controller::FormInput::DateTime

Download:
Solstice-1440.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 3155   Source  

NAME ^

Solstice::Controller::FormInput::DateTime - Allows the manipulation of a Solstice::DateTime model

SYNOPSIS ^

DESCRIPTION ^

Superclass

Solstice::Controller::FormInput

Export

No symbols exported.

Methods

new($datetime)

Constructor.

getView()
update()
validate()

IDEA: add a way to set a callback function into this controller for validation. That would allow validation to be sensitive to the form context.

constrainValidDateTime()
constrainFutureDateTime()
constrainMinimumDateTime($minimum_date)
constrainMaximumDateTime($maximum_date)
commit()
revert()
hasDateChanged()

Returns TRUE if date persistence data differs from stored data.

setRequireFuture(bool)
getRequireFuture()
_getFullYear($str)

Convert a two-digit year string into a four-digit year string

Modules Used

Solstice::Controller.

AUTHOR ^

Catalyst Group, <catalyst@u.washington.edu>

VERSION ^

$Revision: 3155 $

COPYRIGHT ^

Copyright 1998-2007 Office of Learning Technologies, University of Washington

Licensed under the Educational Community License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.opensource.org/licenses/ecl1.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.