Example #1
0
 public function delete(Kwf_Model_Row_Interface $parentRow)
 {
     $row = $this->_getRowByParentRow($parentRow);
     if (!$row) {
         throw new Kwf_Exception('Can\'t find row.');
     } else {
         if (!$row instanceof Kwf_Model_Row_Interface) {
             throw new Kwf_Exception('Row must be a Kwf_Model_Row_Interface.');
         }
     }
     parent::delete($parentRow);
     $row->delete();
 }
 public function __construct($name, $class)
 {
     $this->setProperty('class', $class);
     parent::__construct($name);
 }