コード例 #1
0
 /**
  * Notify feuser observer
  * get id 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 Data handler
  *
  * @return void
  */
 protected function notifyFeuserObserver($status, $table, $id, array &$fieldArray, DataHandler &$pObj)
 {
     // get id
     if ($status == 'new') {
         $id = $pObj->substNEWwithIDs[$id];
     }
     // notify observer
     \CommerceTeam\Commerce\Dao\FeuserObserver::update($status, $id);
 }
コード例 #2
0
 /**
  * After edit create.
  *
  * Sr_feuser_register registration process after saving edited dataset
  *
  * @param string $theTable Table
  * @param array $dataArray Complete array of feuser fields
  *
  * @return void
  */
 public function registrationProcess_afterSaveEdit($theTable, array $dataArray)
 {
     // notify observer
     \CommerceTeam\Commerce\Dao\FeuserObserver::update('update', $dataArray['uid']);
 }