/**
  * Check if an address is deleted.
  *
  * @param int $id Id
  * @param DataHandler $parentObject Parent object
  *
  * @return bool|string
  */
 protected function checkAddressDelete($id, DataHandler $parentObject)
 {
     return \CommerceTeam\Commerce\Dao\AddressObserver::checkDelete($id, $parentObject);
 }
Exemple #2
0
 /**
  * This function is called by the Hook in
  * \CommerceTeam\Commerce\Controller\AddressesController before processing
  * delete address operations return false to permit delete operation.
  *
  * @param int $uid Reference to the incoming fields
  * @param AddressesController $parentObject Parent object
  *
  * @return string error: do not delete message
  */
 public function deleteAddress($uid, AddressesController $parentObject)
 {
     return \CommerceTeam\Commerce\Dao\AddressObserver::checkDelete($uid, $parentObject);
 }