API15

JTable/reset

From Joomla! Documentation

< API15:JTable
Revision as of 17:16, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Resets the default properties void <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowik...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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]

Resets the default properties void


[Edit Descripton]

Template:Description:JTable/reset

Syntax[edit]

reset()


Returns[edit]

void

Defined in[edit]

libraries/joomla/database/table.php

Importing[edit]

jimport( 'joomla.database.table' );

Source Body[edit]

function reset()
{
        $k = $this->_tbl_key;
        foreach ($this->getProperties() as $name => $value)
        {
                if($name != $k)
                {
                        $this->$name    = $value;
                }
        }
}

[Edit See Also] Template:SeeAlso:JTable/reset

Examples[edit]

<CodeExamplesForm />