Beispiel #1
0
 public function serialize($skippedRelations = array(), $properties = array())
 {
     if ($this->getOwner()) {
         $skippedRelations[] = $this->getInstanceField($this->getOwner());
     }
     return parent::serialize($skippedRelations, $properties);
 }
Beispiel #2
0
 public function serialize($skippedRelations = array(), $properties = array())
 {
     $properties[] = 'specificationInstance';
     return parent::serialize($skippedRelations, $properties);
 }
Beispiel #3
0
 public function serialize($skippedRelations = array(), $properties = array())
 {
     $properties[] = 'specificationInstance';
     $properties[] = 'serializedState';
     // for some reason directly unserializing State class causes a segfault...
     if ($this->state->get()) {
         $this->serializedState = $this->state->get()->getID();
         $this->state->setNull();
     }
     return parent::serialize($skippedRelations, $properties);
 }
Beispiel #4
0
 public function serialize($skippedRelations = array(), $properties = array())
 {
     $properties[] = 'specificationInstance';
     foreach (array('defaultShippingAddressID', 'defaultBillingAddressID') as $addr) {
         $skippedRelations[] = $addr;
         $addr = substr($addr, 0, -2);
         $key = 'addr_' . $addr;
         if ($this->{$addr}->get()) {
             $this->{$key} = $this->{$addr}->get()->userAddress->get();
             $properties[] = $key;
         }
     }
     return parent::serialize($skippedRelations, $properties);
 }
Beispiel #5
0
 public function serialize()
 {
     return parent::serialize(array('userID'), array('orderedItems', 'shipments'));
 }
Beispiel #6
0
 public function serialize()
 {
     $this->itemIds = array();
     foreach ($this->items as $item) {
         $this->itemIds[] = $item->getID();
     }
     return parent::serialize(array('orderID'), array('itemIds', 'availableShippingRates', 'selectedRateId'));
 }
Beispiel #7
0
 public function serialize()
 {
     return parent::serialize(array('userID'));
 }