Actions

API17

Difference between revisions of "JModel::getTable"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JModel::getTable|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JModel::getTable|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public JModel->getTable ($name= '', $prefix= 'Table', $options=array())
+
public function getTable (
 +
        $name= ''
 +
        $prefix= 'Table'
 +
        $options=array
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 37: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' object The table
object The table
+
* '''Defined''' on line 369 of libraries/joomla/application/component/model.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/application/component/model.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JControllerForm::save/11.1|JControllerForm::save]]
* [[JControllerForm/save/11.1|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}} Class [[JModel/11.1|JModel]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Application/11.1|Application]]
 +
* [[JModel::getTable|Other versions of JModel::getTable]]
 +
{{SeeAlso:JModel::getTable}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModel::getTable|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JModel::getTable|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JModel/11.1|JModel]]
+
===User contributed notes===
* [[JModel::getTable|Other versions of this method]]
+
{{SeeAlso:JModel::getTable}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 58: Line 60:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JModel]][[Category:JModel::getTable]]</noinclude>
 
<noinclude>[[Category:JModel]][[Category:JModel::getTable]]</noinclude>

Revision as of 21:23, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JModel::getTable

Description

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

Description:JModel::getTable [Edit Descripton]

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

SeeAlso:JModel::getTable [Edit See Also]

User contributed notes

<CodeExamplesForm />