code/libraries/joomlatools/library/database/behavior/lockable.php
public function unlock()
    {
        $userid = $this->getObject('user')->getId();

        //Only an saved row can be unlocked by the user who locked it
        if(!$this->isNew() && $this->locked_by != 0 && $this->locked_by == $userid)
        {
            $this->locked_by = 0;
            $this->locked_on = 0;

            $this->save();
        }

        return true;
    }
public function unlock()
    {
        $userid = $this->getObject('user')->getId();

        //Only an saved row can be unlocked by the user who locked it
        if(!$this->isNew() && $this->locked_by != 0 && $this->locked_by == $userid)
        {
            $this->locked_by = 0;
            $this->locked_on = 0;

            $this->save();
        }

        return true;
    }
public function unlock ( ) { $ userid = $ this -> getObject ( 'user' ) -> getId ( ) ; //Only an saved row can be unlocked by the user who locked it if ( ! $ this -> isNew ( ) && $ this -> locked_by != 0 && $ this -> locked_by == $ userid ) { $ this -> locked_by = 0 ; $ this -> locked_on = 0 ; $ this -> save ( ) ; } return true ; }
Unlock a row

Requires an locked_on and locked_by column to be present in the table

@return boolean	If successful return TRUE, otherwise FALSE
Unlock a row