Back to AdminModel class

Method checkout

public bool
checkout
(mixed $pk = null)
Method override to check-out a record.
Parameters
  • int $pk The ID of the primary key.
Returns
  • bool True if successful, false if an error occurs.
Since
  • 1.6
Class: AdminModel
Project: Joomla

Method checkout - Source code

/**
 * Method override to check-out a record.
 *
 * @param   integer  $pk  The ID of the primary key.
 *
 * @return  boolean  True if successful, false if an error occurs.
 *
 * @since   1.6
 */
public function checkout($pk = null)
{
    $pk = !empty($pk) ? $pk : (int) $this->getState($this->getName() . '.id');
    return parent::checkout($pk);
}