JTable::load
From Joomla! Documentation
Revision as of 21:16, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JTable::load/11.1 to API17:JTable::load without leaving a redirect: Robot: Moved page)
Revision as of 21:16, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JTable::load/11.1 to API17:JTable::load without leaving a redirect: Robot: Moved page)
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JTable::load[edit]
Description[edit]
Method to load a row from the database by primary key and bind the fields to the instance properties.
Template:Description:JTable::load [Edit Descripton]
public function load (
$keys=null
$reset=true
)
Parameter | Type | Default | Description |
---|---|---|---|
$keys | mixed | null | An optional primary key value to load the row by, or an array of fields to match. If not set the instance property value is used. |
$reset | boolean | true | True to reset the default values before loading the new row. |
- Returns boolean True if successful. False if row not found or on error (internal error state set in that case).
- Defined on line 428 of libraries/joomla/database/table.php
- Since
See also[edit]
- JTable::load source code on BitBucket
- Class JTable
- Subpackage Database
- Other versions of JTable::load
Template:SeeAlso:JTable::load [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />