Takes an existing SelectQuery and adds a table join and some columns so that when it is executed the actual data can be retrieved from the row. The join condition must be "fk_data = data_id_field", since the field "fk_data" is already part of the DataManager's table structure.
void
alterQuery
(mixed $query)
Convert this object to a StorableBlob
object
asABlob
()
Convert this object to a StorableTime
object
asADateTime
()
Convert this object to a StorableFloat
object
asAFloat
()
Convert this object to a StorableInteger
object
asAInteger
()
Convert this object to a StorableShortString
object
asAShortString
()
Convert this object to a StorableString
object
asAString
()
Takes a single database row, which would contain the columns added by alterQuery() and extracts the values to setup the object with the appropriate data.
All times are stored in the database as UTC.
Answer a StorableTime representing now
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Answer a StorableTime representing the Squeak epoch: 1 January 1901
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::epoch()
- Answer a new instance representing the Squeak epoch: 1 January 1901
Answer a new instance represented by a string:
- '-1199-01-05T20:33:14.321-05:00'
- ' 2002-05-16T17:20:45.00000001+01:01'
- ' 2002-05-16T17:20:45.00000001'
- ' 2002-05-16T17:20'
- ' 2002-05-16T17:20:45'
- ' 2002-05-16T17:20:45+01:57'
- ' 2002-05-16T17:20:45-02:34'
- ' 2002-05-16T17:20:45+00:00'
- ' 1997-04-26T01:02:03+01:02:3'
-
string
$aString: The input string.
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::fromString()
- Answer a new instance represented by a string:
Create a new TimeStamp from a UNIX timestamp.
object Timestamp
fromUnixTimeStamp
(integer $aUnixTimeStamp, [optional $class = 'StorableTime'])
-
integer
$aUnixTimeStamp: The number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT/UTC)
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Inserts a new row into the Database with the data contained in the object.
integer
insert
(integer $dbID)
-
integer
$dbID: The DBHandler database ID to query.
Returns a string that could be inserted into an SQL query's WHERE clause, based on the Primitive value that is passed. It is used when searching for datasets that contain a certain field=value pair.
string
makeSearchString
(ref $value, [int $searchType = SEARCH_TYPE_EQUALS])
-
int
$searchType: One of the SEARCH_TYPE_* constants, defining what type of search this should be (ie, equals, contains, greater than, less than, etc)
-
ref
$value: object $value The Primitive object to search for.
Answer a new instance starting at midnight local time.
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::midnight()
- Answer a new instance starting at midnight local time.
Answer a new instance starting at noon local time.
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::noon()
- Answer a new instance starting at noon local time.
Answer the current time.
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::now()
- Answer the current date and time.
Deletes the data row from the appropriate table.
void
prune
(integer $dbID, integer $dataID)
-
integer
$dbID: The DBHandler database ID to query.
-
integer
$dataID: The ID in the database of the data to be deleted.
Answer a new instance representing today
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::today()
- Answer a new instance representing today
Answer a new instance representing tomorow
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::tomorrow()
- Answer a new instance representing tomorow
Uses the ID passed and updates the database row with new data.
void
update
(integer $dbID, integer $dataID)
-
integer
$dbID: The DBHandler database ID to query.
-
integer
$dataID: The ID in the database of the data to be updated.
Create a new instance from Date and Time objects
object StorableTime
withDateAndTime
(
optional $aDate,
mixed $aTime, [
mixed $class =
'StorableTime'])
-
optional
$aDate: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withDateAndTime()
- Create a new instance from Date and Time objects
Create a new instance for a given Julian Day Number.
object StorableTime
withJulianDayNumber
(
integer $aJulianDayNumber, [
optional $class =
'StorableTime'])
-
integer
$aJulianDayNumber
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withJulianDayNumber()
- Create a new new instance for a given Julian Day Number.
Create a new instance.
void
withYearDay
(integer $anIntYear, integer $anIntDayOfYear, [optional $class = 'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntDayOfYear
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearDay()
- Create a new instance.
Create a new instance.
object StorableTime
withYearDayHourMinuteSecond
(
integer $anIntYear,
integer $anIntDayOfYear,
integer $anIntHour,
integer $anIntMinute,
integer $anIntSecond, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntDayOfYear
-
integer
$anIntHour
-
integer
$anIntMinute
-
integer
$anIntSecond
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearDayHourMinuteSecond()
- Create a new instance.
Create a new instance.
object StorableTime
withYearDayHourMinuteSecondOffset
(
integer $anIntYear,
integer $anIntDayOfYear,
integer $anIntHour,
integer $anIntMinute,
integer $anIntSecond,
object Duration $aDurationOffset, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntDayOfYear
-
integer
$anIntHour
-
integer
$anIntMinute
-
integer
$anIntSecond
-
object Duration
$aDurationOffset
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearDayHourMinuteSecondOffset()
- Create a new instance.
Create a new instance.
object StorableTime
withYearMonthDay
(
integer $anIntYear,
integer $anIntOrStringMonth,
integer $anIntDay, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntOrStringMonth
-
integer
$anIntDay
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearMonthDay()
- Create a new instance.
Create a new instance.
object StorableTime
withYearMonthDayHourMinute
(
integer $anIntYear,
integer $anIntOrStringMonth,
integer $anIntDay,
integer $anIntHour,
integer $anIntMinute, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntOrStringMonth
-
integer
$anIntDay
-
integer
$anIntHour
-
integer
$anIntMinute
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearMonthDayHourMinute()
- Create a new instance.
Create a new instance.
object StorableTime
withYearMonthDayHourMinuteSecond
(
integer $anIntYear,
integer $anIntOrStringMonth,
integer $anIntDay,
integer $anIntHour,
integer $anIntMinute,
integer $anIntSecond, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntOrStringMonth
-
integer
$anIntDay
-
integer
$anIntHour
-
integer
$anIntMinute
-
integer
$anIntSecond
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearMonthDayHourMinuteSecond()
- Create a new instance.
Create a new instance.
object StorableTime
withYearMonthDayHourMinuteSecondOffset
(
integer $anIntYear,
integer $anIntOrStringMonth,
integer $anIntDay,
integer $anIntHour,
integer $anIntMinute,
integer $anIntSecond,
object Duration $aDurationOffset, [
optional $class =
'StorableTime'])
-
integer
$anIntYear
-
integer
$anIntOrStringMonth
-
integer
$anIntDay
-
integer
$anIntHour
-
integer
$anIntMinute
-
integer
$anIntSecond
-
object Duration
$aDurationOffset
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::withYearMonthDayHourMinuteSecondOffset()
- Create a new instance.
Answer a new instance representing yesterday
-
optional
$class: string $class DO NOT USE OUTSIDE OF PACKAGE. This parameter is used to get around the limitations of not being able to find the class of the object that recieved the initial method call.
Redefinition of:
- DateAndTime::yesterday()
- Answer a new instance representing yesterday
Inherited Methods
Inherited From DateAndTime
DateAndTime::asDate()
DateAndTime::asDateAndTime()
DateAndTime::asDuration()
DateAndTime::asLocal()
DateAndTime::asMonth()
DateAndTime::asSeconds()
DateAndTime::asTime()
DateAndTime::asTimeStamp()
DateAndTime::asUTC()
DateAndTime::asWeek()
DateAndTime::asYear()
DateAndTime::atMidnight()
DateAndTime::atNoon()
DateAndTime::clockPrecision()
DateAndTime::day()
DateAndTime::dayMonthYearArray()
DateAndTime::dayOfMonth()
DateAndTime::dayOfWeek()
DateAndTime::dayOfWeekAbbreviation()
DateAndTime::dayOfWeekName()
DateAndTime::dayOfYear()
DateAndTime::daysInMonth()
DateAndTime::daysInYear()
DateAndTime::daysLeftInYear()
DateAndTime::duration()
DateAndTime::epoch()
DateAndTime::firstDayOfMonth()
DateAndTime::fromString()
DateAndTime::hmsString()
DateAndTime::hour()
DateAndTime::hour12()
DateAndTime::hour24()
DateAndTime::isEqualTo()
DateAndTime::isLeapYear()
DateAndTime::isLessThan()
DateAndTime::julianDayNumber()
DateAndTime::localOffset()
DateAndTime::localTimeZone()
DateAndTime::mdyString()
DateAndTime::meridianAbbreviation()
DateAndTime::middleOf()
DateAndTime::midnight()
DateAndTime::minus()
DateAndTime::minute()
DateAndTime::month()
DateAndTime::monthAbbreviation()
DateAndTime::monthIndex()
DateAndTime::monthName()
DateAndTime::noon()
DateAndTime::now()
DateAndTime::offset()
DateAndTime::plus()
DateAndTime::printableString()
DateAndTime::second()
DateAndTime::ticks()
DateAndTime::ticksOffset()
DateAndTime::timeZone()
DateAndTime::timeZoneAbbreviation()
DateAndTime::timeZoneName()
DateAndTime::to()
DateAndTime::toBy()
DateAndTime::today()
DateAndTime::tomorrow()
DateAndTime::utcOffset()
DateAndTime::withDateAndTime()
DateAndTime::withJulianDayNumber()
DateAndTime::withOffset()
DateAndTime::withYearDay()
DateAndTime::withYearDayHourMinuteSecond()
DateAndTime::withYearDayHourMinuteSecondOffset()
DateAndTime::withYearMonthDay()
DateAndTime::withYearMonthDayHourMinute()
DateAndTime::withYearMonthDayHourMinuteSecond()
DateAndTime::withYearMonthDayHourMinuteSecondOffset()
DateAndTime::year()
DateAndTime::yesterday()
DateAndTime::ymdString()
DateAndTime::_normalize()
Inherited From Magnitude
Magnitude::isBetween()
Magnitude::isEqualTo()
Magnitude::isGreaterThan()
Magnitude::isGreaterThanOrEqualTo()
Magnitude::isLessThan()
Magnitude::isLessThanOrEqualTo()
Magnitude::max()
Magnitude::min()
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()