API16

JTableSession/update: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 1: Line 1:
{{subst:Description:JTableSession/update}}
===Syntax===
===Syntax===
<source lang="php">update($updateNulls=false)</source>
<source lang="php">update($updateNulls=false)</source>
Line 37: Line 35:




{{subst:SeeAlso:JTableSession/update}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=update
  category=update
  category=JTableSession
  category=JTableSession
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:12, 25 March 2017

Syntax

update($updateNulls=false)
Parameter Name Default Value Description
$updateNulls false

Defined in

libraries/joomla/database/table/session.php

Importing

jimport( 'joomla.database.table.session' );

Source Body

function update($updateNulls = false)
{
        $this->time = time();
        $ret = $this->_db->updateObject($this->_tbl, $this, 'session_id', $updateNulls);

        if (!$ret) {
                $this->setError(strtolower(get_class($this))."::". JText::_('STORE_FAILED') ." <br />" . $this->_db->stderr());
                return false;
        } else {
                return true;
        }
}



Examples

Code Examples