Public Member Functions | |
ITEM ($itemid) | |
getitem ($itemid, $allowdraft, $allowfuture) | |
createFromRequest () | |
update ($itemid, $catid, $title, $body, $more, $closed, $wasdraft, $publish, $timestamp=0) | |
move ($itemid, $new_catid) | |
delete ($itemid) | |
exists ($id, $future, $draft) | |
createDraftFromRequest () | |
Public Attributes | |
$itemid |
http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 21 of file ITEM.php.
ITEM::getitem | ( | $ | itemid, | |
$ | allowdraft, | |||
$ | allowfuture | |||
) |
Returns one item with the specific itemid (static)
Definition at line 33 of file ITEM.php.
References $itemid, $manager, $query, getBlogIDFromItemID(), mysql_fetch_assoc(), mysql_num_rows(), mysqldate(), sql_query(), and sql_table().
Referenced by MANAGER::getItem(), and ACTIONS::parse_comments().
ITEM::createFromRequest | ( | ) |
Tries to create an item from the data in the current request (comes from bookmarklet or admin area
Returns an array with status info (status = 'added', 'error', 'newcategory')
(static)
Definition at line 78 of file ITEM.php.
References $itemid, $manager, $member, NucleusPlugin::_applyPluginOptions(), delete(), getBlogIDFromCatID(), intRequestVar(), postVar(), and requestArray().
Referenced by ADMIN::action_additem(), and bm_doAddItem().
ITEM::update | ( | $ | itemid, | |
$ | catid, | |||
$ | title, | |||
$ | body, | |||
$ | more, | |||
$ | closed, | |||
$ | wasdraft, | |||
$ | publish, | |||
$ | timestamp = 0 | |||
) |
Updates an item (static)
Definition at line 174 of file ITEM.php.
References $catid, $itemid, $manager, $query, NucleusPlugin::_applyPluginOptions(), addBreaks(), getBlogIDFromCatID(), getBlogIDFromItemID(), move(), mysqldate(), requestArray(), and sql_query().
Referenced by _edititem(), ADMIN::action_itemupdate(), bm_doEditItem(), and createDraftFromRequest().
ITEM::move | ( | $ | itemid, | |
$ | new_catid | |||
) |
Definition at line 261 of file ITEM.php.
References $itemid, $manager, $query, getBlogIDFromCatID(), and sql_query().
Referenced by ADMIN::action_itemmoveto(), ADMIN::moveOneItem(), and update().
ITEM::delete | ( | $ | itemid | ) |
Deletes an item
Definition at line 300 of file ITEM.php.
References $itemid, $manager, $query, NucleusPlugin::_deleteOptionValues(), and sql_query().
Referenced by _deleteItem(), ADMIN::action_itemupdate(), bm_doEditItem(), createFromRequest(), and ADMIN::deleteOneItem().
ITEM::exists | ( | $ | id, | |
$ | future, | |||
$ | draft | |||
) |
Definition at line 322 of file ITEM.php.
References $manager, getBlogIDFromItemID(), mysql_num_rows(), and sql_query().
Referenced by MANAGER::existsItem().
ITEM::createDraftFromRequest | ( | ) |
Tries to create an draft from the data in the current request (comes from bookmarklet or admin area
Returns an array with status info (status = 'added', 'error', 'newcategory')
(static)
Used by xmlHTTPRequest AutoDraft
Definition at line 352 of file ITEM.php.
References $itemid, $manager, $member, getBlogIDFromCatID(), getBlogIDFromItemID(), mb_convert_encoding(), postVar(), and update().
Referenced by ACTION::autoDraft().
ITEM::$itemid |
Definition at line 23 of file ITEM.php.
Referenced by createDraftFromRequest(), createFromRequest(), delete(), getitem(), ITEM(), move(), and update().