Nooku Framework is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

nooku-framework

Commit 2301

User picture
  • Author: johanjanssens
  • 2010-06-30 09:06 (almost 4 years ago)

re #3 : KDatabaseRowAbstract action functions now return a boolean instead of $this.

Files Affected

 
23002301
60
     *
60
     *
61
     * Requires an 'locked_on' and 'locked_by' column
61
     * Requires an 'locked_on' and 'locked_by' column
62
     *
62
     *
63
     * @return     KDatabaseRowAbstract
63
     * @return boolean    If successfull return TRUE, otherwise FALSE
64
     */
64
     */
65
    public function lock()
65
    public function lock()
66
    {
66
    {
...
 
...
 
72
            $this->save();
72
            $this->save();
73
        }
73
        }
74
 
74
 
75
        return $this->_mixer;
75
        return true;
76
    }
76
    }
77
 
77
 
78
    /**
78
    /**
...
 
...
 
80
     *
80
     *
81
     * Requires an locked_on and locked_by column to be present in the table
81
     * Requires an locked_on and locked_by column to be present in the table
82
     *
82
     *
83
     * @return     KDatabaseRowAbstract
83
     * @return boolean    If successfull return TRUE, otherwise FALSE
84
     */
84
     */
85
    public function unlock()
85
    public function unlock()
86
    {
86
    {
...
 
...
 
95
            $this->save();
95
            $this->save();
96
        }
96
        }
97
 
97
 
98
        return $this->_mixer;
98
        return true;
99
    }
99
    }
100
 
100
 
101
    /**
101
    /**