API15

Difference between revisions of "JModel/addTablePath"

From Joomla! Documentation

< API15:JModel
(New page: ===Description=== Adds to the stack of model table paths in LIFO order. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JModel/addTablePath|Edit Desc...)
 
Line 9: Line 9:
  
 
===Syntax===
 
===Syntax===
<source lang="php">static addTablePath($path)</source>
+
<source lang="php">addTablePath($path)</source>
  
 
  {| class="wikitable"
 
  {| class="wikitable"
Line 32: Line 32:
 
===Source Body===
 
===Source Body===
 
<source lang="php">
 
<source lang="php">
public static function addTablePath($path)
+
function addTablePath($path)
 
{
 
{
 
         jimport('joomla.database.table');
 
         jimport('joomla.database.table');

Revision as of 17:10, 22 March 2010

The "API15" 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.

Description[edit]

Adds to the stack of model table paths in LIFO order.

[Edit Descripton]

Template:Description:JModel/addTablePath

Syntax[edit]

addTablePath($path)
Parameter Name Default Value Description
$path The directory (-ies) to add.

Returns[edit]

void

Defined in[edit]

libraries/joomla/application/component/model.php

Importing[edit]

jimport( 'joomla.application.component.model' );

Source Body[edit]

function addTablePath($path)
{
        jimport('joomla.database.table');
        JTable::addIncludePath($path);
}

[Edit See Also] Template:SeeAlso:JModel/addTablePath

Examples[edit]

<CodeExamplesForm />