Beispiel #1
0
 public function init($map = null, $prefix = '')
 {
     if ($map != null) {
         $mapKeyName = $prefix . 'firstName';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->firstName = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'lastName';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->lastName = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'businessName';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->businessName = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'phone';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->phone = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'fax';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->fax = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'website';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->website = $map[$mapKeyName];
         }
         $mapKeyName = $prefix . 'customValue';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->customValue = $map[$mapKeyName];
         }
         if (PPUtils::array_match_key($map, $prefix . "address.")) {
             $newPrefix = $prefix . "address.";
             $this->address = new BaseAddress();
             $this->address->init($map, $newPrefix);
         }
     }
 }
Beispiel #2
0
 public function init($map = null, $prefix = '')
 {
     if ($map != null) {
         $mapKeyName = $prefix . 'addresseeName';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->addresseeName = $map[$mapKeyName];
         }
         if (PPUtils::array_match_key($map, $prefix . "baseAddress.")) {
             $newPrefix = $prefix . "baseAddress.";
             $this->baseAddress = new BaseAddress();
             $this->baseAddress->init($map, $newPrefix);
         }
         $mapKeyName = $prefix . 'addressId';
         if ($map != null && array_key_exists($mapKeyName, $map)) {
             $this->addressId = $map[$mapKeyName];
         }
     }
 }
Beispiel #3
0
 public function init()
 {
     return parent::init();
 }