Class: DateSelect
Source Location: /forms/items/DateSelect.class.php
ABSTObject
|
--ABSTHTMLTag
|
--ABSTHTMLFormItem
|
--DateSelect
Author(s):
Version:
Copyright:
Copyright (C) 2003 Daniel Plücken <daniel@debakel.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
constructor DateSelect [line 157]
DateSelect DateSelect(
[string
$name = ""], [
$minuteinterval = 5], [
$secondinterval = 15], integer
$minuteintervall, integer
$secondintervall)
|
|
Constructor
Tags:
Parameters:
method disableJSCheck [line 686]
With this method you can disable the checkup of guilty dates by javascript.
Tags:
method extractMinuteFromTimestamp [line 1282]
string extractMinuteFromTimestamp(
$timestamp, string
$selectedValue, boolean
$hidden)
|
|
Gets the minute of a given timestamp and rounds it to the nearest value of the minute select.
Tags:
Parameters:
method extractSecondFromTimestamp [line 1256]
string extractSecondFromTimestamp(
$timestamp, string
$selectedValue, boolean
$hidden)
|
|
Gets the second of a given timestamp and rounds it to the nearest value of the second select.
Tags:
Parameters:
method get [line 1305]
string get(
[
$str_format = ""])
|
|
Returns a generated string based on the attributes of this object.
Tags:
Parameters:
method getClone [line 336]
object getClone(
[string
$newName = ""])
|
|
Returns a clone of this object.
Tags:
Parameters:
method getDaySelect [line 561]
Returns a generated string based on the attributes of this object's day-select.
Tags:
method getHourSelect [line 536]
Returns a generated string based on the attributes of this object's hour-select.
Tags:
method getISODate [line 425]
string getISODate(
[mixed
$itemname_or_timestamp = ""])
|
|
Returns an iso date from a given timestamp or extracts the iso date from request data of a form component, that was generated with this class. In last case you only have to give in the name you used with the constructor to generate an object of this class. In both upper cases this method can be called statically. If no parameter was given, the method tries to get the date from class variable $timestamp, which can be set by the method setTimestamp() of this class.
Tags:
Parameters:
method getJSFunctionsToCheckDate [line 1391]
string getJSFunctionsToCheckDate(
)
|
|
Creates javascript-functions to verify the date choosen by an user.
Tags:
method getMinuteSelect [line 511]
string getMinuteSelect(
)
|
|
Returns a generated string based on the attributes of this object's minute-select.
Tags:
method getMonthSelect [line 636]
Returns a generated string based on the attributes of this object's minute-select.
Tags:
method getName [line 731]
Returns the name suffix of this select group.
Tags:
Overrides ABSTHTMLTag::getName() (Returns the value of this tag's "name"-attribute.)
method getSecondSelect [line 392]
string getSecondSelect(
)
|
|
Returns a generated string based on the attributes of this object's second-select.
Tags:
method getTimestamp [line 462]
Returns the timestamp value that can compute from the values of the selects.
Tags:
method getWeekDaySelect [line 586]
string getWeekDaySelect(
)
|
|
Returns a generated string based on the attributes of this object's weekday-select.
Tags:
method getWeeknumSelect [line 611]
string getWeeknumSelect(
)
|
|
Returns a generated string based on the attributes of this object's minute-select.
Tags:
method getYearSelect [line 661]
Returns a generated string based on the attributes of this object's minute-select.
Tags:
method setDaySelect [line 944]
string setDaySelect(
[string
$selectedValue = ""], [boolean
$hidden = false])
|
|
Sets up the item to selecting the day of a date.
Tags:
Parameters:
method setHourSelect [line 881]
string setHourSelect(
[string
$selectedValue = ""], [boolean
$hidden = false], [boolean
$show_emptylabel = false], [integer
$begin = 0], [integer
$end = 23])
|
|
Sets up the item to selecting the hour of a date.
Tags:
Parameters:
method setISODate [line 316]
void setISODate(
integer
$str_iso_date)
|
|
Sets the values of the select group with the given ISO date.
Tags:
Parameters:
method setMinuteSelect [line 813]
string setMinuteSelect(
[string
$selectedValue = ""], [boolean
$hidden = false], [boolean
$show_emptylabel = false])
|
|
Sets up the item to selecting the minute of a date.
Tags:
Parameters:
method setMonthSelect [line 1112]
string setMonthSelect(
[string
$selectedValue = ""], [
$kind = "NAMES"], [
$hidden = false], [
$show_emptylabel = false], boolean
$year)
|
|
Sets up the item to selecting the month of a given year.
Tags:
Parameters:
method setOnlyFutureDates [line 701]
void setOnlyFutureDates(
)
|
|
With this method you can set the checkup of guilty dates in the future by javascript.
Tags:
method setOnlyFutureErrMSG [line 717]
void setOnlyFutureErrMSG(
string
$string)
|
|
With this method you can set the message that should appear if the given date isn't a date in the future.
Tags:
Parameters:
method setOutputTemplate [line 242]
void setOutputTemplate(
string
$str_template)
|
|
This sets in which order the selects should be output. You can use following placeholders: - {#WEEKDAY#} - For the weekdays select
- {#DAY#} - For the days select.
- {#MONTH#} - For the months select.
- {#YEAR#} - For the years select.
- {#HOUR#} - For the hours select.
- {#MINUTE#} - For the minutes select.
- {#SECOND#} - For the seconds select.
- {#WEEKNUM#} - For the weeknums select.
Tags:
Parameters:
method setSecondSelect [line 748]
string setSecondSelect(
[string
$selectedValue = ""], [boolean
$hidden = false], [boolean
$show_emptylabel = false])
|
|
Sets up the item to selecting the second of a date.
Tags:
Parameters:
method setStandardDateFormat [line 213]
void setStandardDateFormat(
string
$str_kind)
|
|
This sets how the selected date should be standardly handled. The Following values are allowed: - ISO - Means that the selected value of this widget will be put in
a database relation in an ISO-Format, if it is a member of
a DBTfillingForm.
- TIMESTAMP - Means that the selected value of this widget will be put in
a database relation in an UNIX-Timestamp-Format, if it is a
member of a DBTfillingForm. This is the first standard if
no other declaration was made.
Tags:
Parameters:
method setStandardYearSelect [line 1225]
string setStandardYearSelect(
[
$selectedIndex = ""], [boolean
$hidden = false], string
$selectedValue)
|
|
Sets up the item to selecting the year of date. It will start on tree years ago and two years int he future
Tags:
Parameters:
method setTimestamp [line 257]
void setTimestamp(
integer
$timestamp)
|
|
Sets the values of the select group with the given timestamp.
Tags:
Parameters:
method setWeekDaySelect [line 993]
string setWeekDaySelect(
[string
$selectedValue = ""], [
$kind = "NAMES"], [boolean
$hidden = false], [boolean
$show_emptylabel = false])
|
|
Sets up the item to selecting the weekday of a date.
Tags:
Parameters:
method setWeeknumSelect [line 1058]
string setWeeknumSelect(
[string
$selectedValue = ""], [integer
$year = ""], [boolean
$hidden = false])
|
|
Sets up the item to selecting the weeknum of a given year.
Tags:
Parameters:
method setYearSelect [line 1179]
string setYearSelect(
integer
$yearBegin, integer
$yearEnd, [string
$selectedValue = ""], [boolean
$hidden = false])
|
|
Sets up the item to selecting the year of a date. You have to define the value on which it should start and this one on which it should end.
Tags:
Parameters:
|
|