ITEM Class Reference

List of all members.

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


Detailed Description

A class representing an item

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
ITEM.php 1195 2007-09-05 06:19:47Z kimitake
NucleusJP
ITEM.php,v 1.7.2.2 2008/02/05 08:31:44 kimitake Exp

Definition at line 21 of file ITEM.php.


Member Function Documentation

ITEM::ITEM ( itemid  ) 

Definition at line 25 of file ITEM.php.

References $itemid.

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 
)

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  ) 

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().


Member Data Documentation

ITEM::$itemid

Definition at line 23 of file ITEM.php.

Referenced by createDraftFromRequest(), createFromRequest(), delete(), getitem(), ITEM(), move(), and update().


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:02 2008 by  doxygen 1.5.5