36 if (count($this->serialAttributes)) {
37 foreach ($this->serialAttributes as $attribute) {
38 $_att = $this->getOwner()->$attribute;
41 if (is_array($_att)) {
42 $this->getOwner()->$attribute = base64_encode(serialize($_att));
46 if (is_scalar($_att)) {
47 $a = @unserialize(@base64_decode($_att));
49 $this->getOwner()->$attribute = null;
62 if (count($this->serialAttributes)) {
63 foreach ($this->serialAttributes as $attribute) {
64 $_att = $this->getOwner()->$attribute;
66 && is_scalar($_att)) {
67 $a = @unserialize(@base64_decode($_att));
69 $this->getOwner()->$attribute = $a;
71 $this->getOwner()->$attribute = null;
80 if (count($this->serialAttributes)) {
81 foreach ($this->serialAttributes as $attribute) {
82 $_att = $this->getOwner()->$attribute;
84 && is_scalar($_att)) {
85 $a = @unserialize(@base64_decode($_att));
87 $this->getOwner()->$attribute = $a;
89 $this->getOwner()->$attribute = array();