add_iotd (line 41)
Add an IOTD to the database and return the ID of the new entry.
AUTO_LINK
add_iotd
(URLPATH $url, SHORT_TEXT $title, LONG_TEXT $caption, URLPATH $thumb_url, BINARY $current, BINARY $allow_rating, SHORT_INTEGER $allow_comments, BINARY $allow_trackbacks, LONG_TEXT $notes, [?TIME $time = NULL], [?MEMBER $submitter = NULL], [BINARY $used = 0], [?TIME $use_time = NULL], [integer $views = 0], [?TIME $edit_date = NULL])
-
URLPATH
$url: The URL to the IOTD image
-
SHORT_TEXT
$title: The IOTD title
-
LONG_TEXT
$caption: The IOTD caption
-
URLPATH
$thumb_url: The URL to the IOTD thumbnail image
-
BINARY
$current: Whether the IOTD is currently in use (note: setting this to 1 will not actually set the IOTD, and if it is 1, then the IOTD must be explicitly set only to this)
-
BINARY
$allow_rating: Whether the IOTD may be rated
-
SHORT_INTEGER
$allow_comments: Whether comments are allowed (0=no, 1=yes, 2=review style)
-
BINARY
$allow_trackbacks: Whether the IOTD may be trackbacked
-
LONG_TEXT
$notes: Notes for the IOTD
-
?TIME
$time: The time of submission (NULL: now)
-
?MEMBER
$submitter: The IOTD submitter (NULL: current member)
-
BINARY
$used: Whether the IOTD has been used before
-
?TIME
$use_time: The time the IOTD was used (NULL: never)
-
integer
$views: The number of views had
-
?TIME
$edit_date: The edit date (NULL: never)
delete_iotd (line 90)
Delete an IOTD.
void
delete_iotd
(AUTO_LINK $id)
-
AUTO_LINK
$id: The ID of the IOTD to delete
edit_iotd (line 66)
Edit an IOTD.
void
edit_iotd
(AUTO_LINK $id, SHORT_TEXT $title, LONG_TEXT $caption, URLPATH $thumb_url, URLPATH $url, BINARY $allow_rating, SHORT_INTEGER $allow_comments, BINARY $allow_trackbacks, LONG_TEXT $notes)
-
AUTO_LINK
$id: The ID of the IOTD to edit
-
SHORT_TEXT
$title: The IOTD title
-
LONG_TEXT
$caption: The IOTD caption
-
URLPATH
$thumb_url: The URL to the IOTD image
-
URLPATH
$url: The URL to the IOTD thumbnail image
-
BINARY
$allow_rating: Whether the IOTD may be rated
-
SHORT_INTEGER
$allow_comments: Whether comments are allowed (0=no, 1=yes, 2=review style)
-
BINARY
$allow_trackbacks: Whether the IOTD may be trackbacked
-
LONG_TEXT
$notes: Notes for the IOTD
set_iotd (line 116)
Set the IOTD.
void
set_iotd
(AUTO_LINK $id)
-
AUTO_LINK
$id: The IOTD ID to set