Esempio n. 1
0
 /**
  * Delete all referenced records
  *
  * Although it's a public access to this method it shouldn't be called outside
  * this class. The only reason it's not private is because it needs to be executed
  * on new objects.
  *
  * @return boolean  True on success else false
  * @access public
  **/
 function deleteCascade($linkedRefs, $primaryKey, $parentid)
 {
     $result = parent::deleteCascade($linkedRefs, $primaryKey, $parentid);
     // Delete users or link them to other accounts
     if ($result) {
         return $this->_relinkOrDeleteUsers();
     }
     return $result;
 }