Back to Usergroup class

Method store

public bool
store
(mixed $updateNulls = false)
Inserts a new row if id is zero or updates an existing row in the database table
Parameters
  • bool $updateNulls If false, null object variables are not updated
Returns
  • bool True if successful, false otherwise and an internal error message is set
Since
  • 1.7.0
Class: Usergroup
Project: Joomla

Method store - Source code

/**
 * Inserts a new row if id is zero or updates an existing row in the database table
 *
 * @param   boolean  $updateNulls  If false, null object variables are not updated
 *
 * @return  boolean  True if successful, false otherwise and an internal error message is set
 *
 * @since   1.7.0
 */
public function store($updateNulls = false)
{
    if ($result = parent::store($updateNulls)) {
        // Rebuild the nested set tree.
        $this->rebuild();
    }
    return $result;
}