/**
  * New ODD Relationship
  *
  * @param unknown_type $uuid1 First UUID
  * @param unknown_type $type  Type of telationship
  * @param unknown_type $uuid2 Second UUId
  */
 function __construct($uuid1, $type, $uuid2)
 {
     parent::__construct();
     $this->setAttribute('uuid1', $uuid1);
     $this->setAttribute('type', $type);
     $this->setAttribute('uuid2', $uuid2);
 }
Esempio n. 2
0
 /**
  * New ODD Entity
  *
  * @param string $uuid     A universally unique ID
  * @param string $class    Class
  * @param string $subclass Subclass
  */
 function __construct($uuid, $class, $subclass = "")
 {
     parent::__construct();
     $this->setAttribute('uuid', $uuid);
     $this->setAttribute('class', $class);
     $this->setAttribute('subclass', $subclass);
 }
 /**
  * New ODD metadata
  *
  * @param string $uuid        Unique ID
  * @param string $entity_uuid Another unique ID
  * @param string $name        Name
  * @param string $value       Value
  * @param string $type        Type
  * @param string $owner_uuid  Owner ID
  */
 function __construct($uuid, $entity_uuid, $name, $value, $type = "", $owner_uuid = "")
 {
     parent::__construct();
     $this->setAttribute('uuid', $uuid);
     $this->setAttribute('entity_uuid', $entity_uuid);
     $this->setAttribute('name', $name);
     $this->setAttribute('type', $type);
     $this->setAttribute('owner_uuid', $owner_uuid);
     $this->setBody($value);
 }