/**
  * Notify address observer
  * check status and notify observer
  *
  * @param string $status Status [update,new]
  * @param string $table Database table
  * @param string $id Id
  * @param array $fieldArray Reference to the incoming fields
  * @param DataHandler $pObj Parent object
  *
  * @return void
  */
 protected function notifyAddressObserver($status, $table, $id, array &$fieldArray, DataHandler &$pObj)
 {
     // get id
     if ($status == 'new') {
         $id = $pObj->substNEWwithIDs[$id];
     }
     // if address is updated
     if ($status == 'update') {
         // notify observer
         Tx_Commerce_Dao_AddressObserver::update($status, $id);
     }
 }
Example #2
0
 /**
  * Notify address observer
  * check status and notify observer
  *
  * @param string $status Status [update,new]
  * @param string $table Database table
  * @param int $uid Record id
  * @param array $fieldArray Reference to the incoming fields
  *
  * @return void
  * @deprecated This method is redundant and will be removed in 4.0.0 please use hook afterAddressSave or afterAddressEdit
  */
 protected function notify_addressObserver($status, $table, $uid, array &$fieldArray)
 {
     \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
     Tx_Commerce_Dao_AddressObserver::update($status, $uid);
 }