API16

JModel/addTablePath: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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...
 
m clean up
Line 2: Line 2:
Adds to the stack of model table paths in LIFO order.
Adds to the stack of model table paths in LIFO order.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JModel/addTablePath|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JModel/addTablePath}}
 
{{subst:Description:JModel/addTablePath}}


===Syntax===
===Syntax===
Line 39: Line 37:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JModel/addTablePath|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JModel/addTablePath}}
</span>
{{SeeAlso:JModel/addTablePath}}


===Examples===
===Examples===

Revision as of 14:14, 24 March 2017

Description

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


{{subst:Description:JModel/addTablePath}}

Syntax

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

Returns

void

Defined in

libraries/joomla/application/component/model.php

Importing

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

Source Body

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


{{subst:SeeAlso:JModel/addTablePath}}

Examples

<CodeExamplesForm />