public static function UcAddress::__set_state in Ubercart 7.3
PHP magic method to use in relation with var_export().
Created for strongarm compatibility.
Parameters
array $data: Data to import
File
- uc_store/
classes/ address.inc, line 182 - UcAddress utility class definition.
Class
- UcAddress
- Defines an object to hold Ubercart mailing address information.
Code
public static function __set_state($data) {
$obj = new self();
foreach ($data as $key => $val) {
$obj->{$key} = $val;
}
return $obj;
}