Esempio n. 1
0
 /**
  */
 public function toActivityObject()
 {
     $obj = new ActivityObject();
     $obj->setType(ActivityObject::TYPE_VIDEO);
     $obj->setClassName(VideoTableMap::OM_CLASS);
     $obj->setDisplayName($this->getTitle());
     $obj->setReferenceId($this->getId());
     return $obj;
 }
Esempio n. 2
0
 /**
  */
 public function toActivityObject()
 {
     $obj = new ActivityObject();
     $obj->setType(ActivityObject::TYPE_SKILL);
     $obj->setClassName(SkillTableMap::OM_CLASS);
     $obj->setDisplayName($this->getName());
     $obj->setReferenceId($this->getId());
     $obj->setVersion($this->getVersion());
     return $obj;
 }