You are here

protected function NodeGalleryRelationshipType::setUp in Node Gallery 7

Set up the object instance on construction or unserializiation.

Overrides Entity::setUp

File

./node_gallery_api.module, line 1403
Node Gallery module.

Class

NodeGalleryRelationshipType
A class used for Node Gallery Relationship Types

Code

protected function setUp() {
  if (!empty($this->settings)) {
    $settings = unserialize($this->settings);
    $this->gallery_types = $settings['relationship_type']['gallery_types'];
    $this->item_types = $settings['relationship_type']['item_types'];
  }
}