/** * 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 11.1 */ public function checkout($pk = null) { // Initialise variables. $pk = (!empty($pk)) ? $pk : (int) $this->getState($this->getName().'.id'); return parent::checkout($pk); }
/** * 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 12.2 */ public function checkout($pk = null) { $pk = !empty($pk) ? $pk : (int) $this->getState($this->getName() . '.id'); return parent::checkout($pk); }
/** * Method to override check-out a row for editing. * * @param int The ID of the primary key. * @return boolean */ public function checkout($pk = null) { // Initialise variables. $pk = !empty($pk) ? $pk : (int) $this->getState('package.id'); return parent::checkout($pk); }