API17

Difference between revisions of "JModel::getTable"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (preparing for archive only)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Method to get a table object, load it if necessary.  
 
Method to get a table object, load it if necessary.  
  
{{Description:JModel::getTable}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JModel::getTable|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
public function getTable (
 
public function getTable (
Line 42: Line 40:
 
* '''Since''' {{JVer|11.1 }}
 
* '''Since''' {{JVer|11.1 }}
 
* '''Referenced by'''
 
* '''Referenced by'''
** [[JControllerForm::save/11.1|JControllerForm::save]]
+
** [[API17:JControllerForm::save|JControllerForm::save]]
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JModel::getTable source code''' on [[jplatform:application/component/model.php#cl-361|BitBucket]]
 
* {{JVer|11.1}} '''JModel::getTable source code''' on [[jplatform:application/component/model.php#cl-361|BitBucket]]
* {{JVer|11.1}} Class [[JModel/11.1|JModel]]
+
* {{JVer|11.1}} Class [[API17:JModel|JModel]]
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Application|Application]]
* [[JModel::getTable|Other versions of JModel::getTable]]
+
* [[API17:JModel::getTable|Other versions of JModel::getTable]]
{{SeeAlso:JModel::getTable}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JModel::getTable|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JModel::getTable
 
category=JModel::getTable
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
Line 63: Line 59:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JModel]][[Category:JModel::getTable]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:27, 24 March 2017

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.

Joomla 11.1 JModel::getTable[edit]

Description[edit]

Method to get a table object, load it if necessary.


public function getTable (
        $name= ''
        $prefix= 'Table'
        $options=array
)
Parameter Type Default Description
$name string The table name. Optional.
$prefix string 'Table' The class prefix. Optional.
$options array array() Configuration array for model. Optional.
  • Returns object The table
  • Defined on line 369 of libraries/joomla/application/component/model.php
  • Since Joomla 11.1
  • Referenced by

See also[edit]


User contributed notes[edit]

Code Examples[edit]