示例#1
0
 protected function _beforeDelete(Kwf_Model_Row_Interface $row)
 {
     parent::_beforeDelete($row);
     if ($this->_model->countRows($this->_getSelect()) <= $row->total_columns) {
         throw new Kwf_Exception_Client(trlKwf('It is not possible to delete a column in first row'));
     }
 }