API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JTable::__construct | ( | $ | table, |
$ | key, | ||
&$ | db | ||
) |
Object constructor to set table and key field
Can be overloaded/supplemented by the child class
protected
string | $table | name of the table in the db schema relating to child class |
string | $key | name of the primary key field in the table |
object | $db | JDatabase object |
Réimplémentée dans mosDBTable.
Références $db.
JTable::addIncludePath | ( | $ | path = null | ) |
Add a directory where JTable should search for table types. You may either pass a string or an array of directories.
public
string | A path to search. |
Références $path.
Référencé par JModel::addTablePath(), getInstance(), et ContactController::vcard().
JTable::bind | ( | $ | from, |
$ | ignore = array() |
||
) |
Binds a named array/hash to this object
Can be overloaded/supplemented by the child class
public
$from | mixed An associative array or object |
$ignore | mixed An array or space separated list of fields not to bind |
Réimplémentée dans TablePoll, TableWeblink, JTableComponent, JTableMenu, JTableModule, JTablePlugin, JTableSection, et JTableUser.
Références $k.
JTable::canDelete | ( | $ | oid = null , |
$ | joins = null |
||
) |
Generic check for whether dependancies exist for this object in the db schema
can be overloaded/supplemented by the child class
public
string | $msg | Error message returned |
int | Optional key index | |
array | Optional array to compiles standard joins: format [label=>'Label',name=>'table name',idfield=>'field',joinfield=>'field'] |
Références $i, $k, $query, et JText::_().
JTable::check | ( | ) |
Generic check method
Can be overloaded/supplemented by the child class
public
Réimplémentée dans TableBanner, TableBannerClient, TableContact, TableMessage, TableNewsFeed, TablePoll, TableWeblink, JTableCategory, JTableComponent, JTableContent, JTableMenu, JTableMenuTypes, JTableModule, JTableSection, et JTableUser.
JTable::checkin | ( | $ | oid = null | ) |
JTable::checkout | ( | $ | who, |
$ | oid = null |
||
) |
Checks out a row
public
integer | The id of the user |
mixed | The primary key value for the row |
Références $date, $k, $query, et JFactory::getDate().
JTable::delete | ( | $ | oid = null | ) |
Default delete method
can be overloaded/supplemented by the child class
public
Réimplémentée dans TablePoll, JTableSession, et JTableUser.
& JTable::getDBO | ( | ) |
Get the internal database object
& JTable::getInstance | ( | $ | type, |
$ | prefix = 'JTable' , |
||
$ | config = array() |
||
) |
Returns a reference to the a Table object, always creating it
type | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $options | Configuration array for model. Optional. |
Références $config, $db, $path, $type, addIncludePath(), JPath::find(), JFactory::getDBO(), jimport(), et JError::raiseWarning().
Référencé par JInstallerComponent::_buildAdminMenus(), JApplication::_createSession(), JModel::_createTable(), MenusModelItem::_getTable(), PluginsController::access(), ContentController::accessMenu(), accessMenu(), ContentController::cancel(), PollController::cancel(), PluginsController::cancel(), BannerControllerClient::cancel(), BannerControllerBanner::cancel(), cancelCategory(), cancelContact(), ContentController::cancelContent(), cancelNewsFeed(), cancelSection(), changeAccess(), changeContact(), changeFrontPage(), changePublishNewsFeeds(), ContentModelArticle::checkin(), ContentModelArticle::checkout(), MenusModelList::copy(), BannerControllerBanner::copy(), copyCategorySave(), ContentController::copyItemSave(), copySectionSave(), MenusModelMenutype::delete(), plgXMLRPCBloggerServices::deletePost(), deleteTrash(), JSessionStorageDatabase::destroy(), InstallerModelComponents::disable(), ContactViewCategory::display(), PollViewPoll::display(), PluginsViewPlugin::display(), MenusController::doCopyMenu(), ConfigControllerComponent::edit(), BannerControllerClient::edit(), BannerControllerBanner::edit(), editCategory(), editContact(), ContentController::editContent(), MenusViewMenus::editForm(), editNewsFeed(), plgXMLRPCBloggerServices::editPost(), editSection(), InstallerModelComponents::enable(), JElementArticle::fetchElement(), JSessionStorageDatabase::gc(), ContentModelArticle::getArticle(), MenusModelList::getComponent(), MenusModelItem::getComponent(), JApplication::getItemid(), ConfigModelComponent::getParams(), JUser::getTable(), MenusModelMenutype::getTable(), MenusModelList::getTable(), ContentModelArticle::hit(), JInstallerPlugin::install(), JInstallerModule::install(), isCheckedOut(), moveCategorySave(), ContentController::moveSectionSave(), plgXMLRPCBloggerServices::newPost(), plgUserJoomla::onLoginUser(), plgUserJoomla::onLogoutUser(), PluginsController::order(), orderCategory(), orderContacts(), ContentController::orderContent(), orderFrontPage(), orderNewsFeed(), orderSection(), PollController::publish(), PluginsController::publish(), publishCategories(), publishSections(), JSessionStorageDatabase::read(), PollController::remove(), BannerControllerClient::remove(), removeFrontPage(), ContentHelper::resetHits(), PollController::save(), PluginsController::save(), ConfigControllerComponent::save(), BannerControllerClient::save(), BannerControllerBanner::save(), ConfigControllerApplication::save(), saveCategory(), saveContact(), MenusController::saveMenu(), saveNewsFeed(), PluginsController::saveorder(), ContentController::saveOrder(), BannerControllerBanner::saveOrder(), saveOrder(), saveSection(), MenusController::setdefault(), ConfigApplicationView::showConfig(), ContentModelArticle::store(), JInstallerPlugin::uninstall(), JInstallerModule::uninstall(), JInstallerComponent::uninstall(), ContactController::vcard(), PollController::vote(), et JSessionStorageDatabase::write().
JTable::getKeyName | ( | ) |
Gets the internal primary key name
JTable::getNextOrder | ( | $ | where = '' | ) |
JTable::getTableName | ( | ) |
Gets the internal table name for the object
JTable::hit | ( | $ | oid = null , |
$ | log = false |
||
) |
JTable::isCheckedOut | ( | $ | with = 0 , |
$ | against = null |
||
) | [static] |
Check if an item is checked out
This function can be used as a static function too, when you do so you need to also provide the a value for the $against parameter.
public
integer | $with | The userid to preform the match with, if an item is checked out by this user the function will return false |
integer | $against | The userid to perform the match against when the function is used as a static function. |
Références $session, et getInstance().
Référencé par BannersViewBanner::banners(), BannersViewClients::clients(), editCategory(), ContentController::editContent(), sections_html::show(), categories_html::show(), HTML_contact::showContacts(), ContentView::showContent(), FrontpageView::showList(), HTML_newsfeeds::showNewsFeeds(), TemplatesView::showTemplates(), et HTML_modules::view().
JTable::load | ( | $ | oid = null | ) |
JTable::move | ( | $ | dirn, |
$ | where = '' |
||
) |
Description
public
$dirn | |
$where |
Références $k, $query, $where, et JError::raiseError().
JTable::publish | ( | $ | cid = null , |
$ | publish = 1 , |
||
$ | user_id = 0 |
||
) |
Generic Publish/Unpublish function
public
array | An array of id numbers |
integer | 0 if unpublishing, 1 if publishing |
integer | The id of the user performnig the operation |
Références $cid, $k, $query, et JArrayHelper::toInteger().
JTable::reorder | ( | $ | where = '' | ) |
JTable::save | ( | $ | source, |
$ | order_filter = '' , |
||
$ | ignore = '' |
||
) |
Generic save function
public
array | Source array for binding to class vars |
string | Filter for the order updating |
mixed | An array or space separated list of fields not to bind |
JTable::setDBO | ( | &$ | db | ) |
JTable::store | ( | $ | updateNulls = false | ) |
Inserts a new row if id is zero or updates an existing row in the database table
Can be overloaded/supplemented by the child class
public
boolean | If false, null object variables are not updated |
Réimplémentée dans JTableUser.
Références $k.
JTable::toXML | ( | $ | mapKeysToText = false | ) |
Export item list to xml
public
boolean | Map foreign keys to text values |
Réimplémentée dans JTableContent.
Références $k.
JTable::$_db = null |
JTable::$_tbl = '' |
JTable::$_tbl_key = '' |