Esempio n. 1
0
 /** @inheritdoc */
 public function getOutputObject()
 {
     $baseObject = parent::getOutputObject();
     $baseObject->poll = $this->getPoll()->getId();
     $baseObject->question = $this->getQuestion()->getId();
     $baseObject->type = $this->getType()->getOutputObject();
     $baseObject->value = $this->getValue();
     return $baseObject;
 }
Esempio n. 2
0
 /**
  * Return output object for type
  *
  * @return \stdClass
  */
 public function getOutputObject()
 {
     $baseObject = parent::getOutputObject();
     $baseObject->name = $this->getName();
     return $baseObject;
 }
Esempio n. 3
0
 /** @inheritdoc */
 public function getOutputObject()
 {
     $baseObject = parent::getOutputObject();
     $baseObject->poll = $this->getPoll()->getId();
     $baseObject->type = $this->getType()->getOutputObject();
     $baseObject->title = $this->getTitle();
     $baseObject->value = $this->getValue();
     $baseObject->answers = new \stdClass();
     $baseObject->answers->url = $this->getUrl() . '/answers';
     $baseObject->answers->data = array();
     return $baseObject;
 }