41 if (count($this->serialAttributes)) {
42 foreach ($this->serialAttributes as $attribute) {
43 $_att = $this->getOwner()->$attribute;
46 if (is_array($_att)) {
47 $this->getOwner()->$attribute = base64_encode(serialize($_att));
51 if (is_scalar($_att)) {
52 $a = @unserialize(@base64_decode($_att));
54 $this->getOwner()->$attribute = null;
67 if (count($this->serialAttributes)) {
68 foreach ($this->serialAttributes as $attribute) {
69 $_att = $this->getOwner()->$attribute;
73 $a = @unserialize(@base64_decode($_att));
75 $this->getOwner()->$attribute = $a;
77 $this->getOwner()->$attribute = null;
86 if (count($this->serialAttributes)) {
87 foreach ($this->serialAttributes as $attribute) {
88 $_att = $this->getOwner()->$attribute;
92 $a = @unserialize(@base64_decode($_att));
94 $this->getOwner()->$attribute = $a;
96 $this->getOwner()->$attribute = array();