Beispiel #1
0
 public static function set(PhysicalAddressResource $physical_address, $values)
 {
     $physical_address->setBuilding($values['building']);
     $physical_address->setRoomNumber(empty($values['room_number']) ? null : $values['room_number']);
     $physical_address->setPostBox($values['post_box']);
     $physical_address->setStreet($values['street']);
     $physical_address->setCity($values['city']);
     $physical_address->setState($values['state']);
     $physical_address->setZip($values['zip']);
 }
Beispiel #2
0
 public static function load()
 {
     $physical_address = new \contact\Resource\ContactInfo\PhysicalAddress();
     $physical_address->setRoomNumber(\Settings::get('contact', 'room_number'));
     $physical_address->setBuilding(\Settings::get('contact', 'building'));
     $physical_address->setStreet(\Settings::get('contact', 'street'));
     $physical_address->setPostBox(\Settings::get('contact', 'post_box'));
     $physical_address->setCity(\Settings::get('contact', 'city'));
     $physical_address->setState(\Settings::get('contact', 'state'));
     $physical_address->setZip(\Settings::get('contact', 'zip'));
     return $physical_address;
 }