Back to Module class

Method store

public bool
store
(mixed $updateNulls = true)
Stores a module.
Parameters
  • bool $updateNulls True to update fields even if they are null.
Returns
  • bool True on success, false on failure.
Since
  • 3.7.0
Class: Module
Project: Joomla

Method store - Source code

/**
 * Stores a module.
 *
 * @param   boolean  $updateNulls  True to update fields even if they are null.
 *
 * @return  boolean  True on success, false on failure.
 *
 * @since   3.7.0
 */
public function store($updateNulls = true)
{
    if (!$this->ordering) {
        $this->ordering = $this->getNextOrder($this->_db->quoteName('position') . ' = ' . $this->_db->quote($this->position));
    }
    return parent::store($updateNulls);
}