Esempio n. 1
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->rows !== null) {
         $list['rows'] = $this->rows;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 2
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->user !== null) {
         $list['user'] = $this->user;
     }
     if ($this->session !== null) {
         $list['session'] = $this->session;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 3
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->baseUrl !== null) {
         $list['baseUrl'] = $this->baseUrl;
     }
     if ($this->databaseUrl !== null) {
         $list['databaseUrl'] = $this->databaseUrl;
     }
     if ($this->databaseName !== null) {
         $list['databaseName'] = $this->databaseName;
     }
     if ($this->databaseRootUser !== null) {
         $list['databaseRootUser'] = $this->databaseRootUser;
     }
     if ($this->databaseRootPassword !== null) {
         $list['databaseRootPassword'] = $this->databaseRootPassword;
     }
     if ($this->databaseOperatorUser !== null) {
         $list['databaseOperatorUser'] = $this->databaseOperatorUser;
     }
     if ($this->databaseOperatorPassword !== null) {
         $list['databaseOperatorPassword'] = $this->databaseOperatorPassword;
     }
     if ($this->tempDirectory !== null) {
         $list['tempDirectory'] = $this->tempDirectory;
     }
     if ($this->filesDirectory !== null) {
         $list['filesDirectory'] = $this->filesDirectory;
     }
     if ($this->externalUrl !== null) {
         $list['externalUrl'] = $this->externalUrl;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 4
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->userName !== null) {
         $list['userName'] = $this->userName;
     }
     if ($this->email !== null) {
         $list['email'] = $this->email;
     }
     if ($this->firstName !== null) {
         $list['firstName'] = $this->firstName;
     }
     if ($this->lastName !== null) {
         $list['lastName'] = $this->lastName;
     }
     if ($this->title !== null) {
         $list['title'] = $this->title;
     }
     if ($this->courses !== array() && $this->courses !== null) {
         $list['courses'] = $this->courses;
     }
     if ($this->flag !== null) {
         $list['flag'] = $this->flag;
     }
     if ($this->password !== null) {
         $list['password'] = $this->password;
     }
     if ($this->salt !== null) {
         $list['salt'] = $this->salt;
     }
     if ($this->failedLogins !== null) {
         $list['failedLogins'] = $this->failedLogins;
     }
     if ($this->externalId !== null) {
         $list['externalId'] = $this->externalId;
     }
     if ($this->studentNumber !== null) {
         $list['studentNumber'] = $this->studentNumber;
     }
     if ($this->isSuperAdmin !== null) {
         $list['isSuperAdmin'] = $this->isSuperAdmin;
     }
     if ($this->comment !== null) {
         $list['comment'] = $this->comment;
     }
     if ($this->lang !== null) {
         $list['lang'] = $this->lang;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 5
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->text !== null) {
         $list['text'] = $this->text;
     }
     if ($this->orientation !== null) {
         $list['orientation'] = $this->orientation;
     }
     if ($this->font !== null) {
         $list['font'] = $this->font;
     }
     if ($this->fontSize !== null) {
         $list['fontSize'] = $this->fontSize;
     }
     if ($this->textColor !== null) {
         $list['textColor'] = $this->textColor;
     }
     if ($this->subject !== null) {
         $list['subject'] = $this->subject;
     }
     if ($this->title !== null) {
         $list['title'] = $this->title;
     }
     if ($this->author !== null) {
         $list['author'] = $this->author;
     }
     if ($this->format !== null) {
         $list['format'] = $this->format;
     }
     if ($this->creator !== null) {
         $list['creator'] = $this->creator;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 6
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->name !== null) {
         $list['name'] = $this->name;
     }
     if ($this->version !== null) {
         $list['version'] = $this->version;
     }
     if ($this->versionDate !== null) {
         $list['versionDate'] = $this->versionDate;
     }
     if ($this->author !== null) {
         $list['author'] = $this->author;
     }
     if ($this->sourceUrl !== null) {
         $list['sourceUrl'] = $this->sourceUrl;
     }
     if ($this->updateUrl !== null) {
         $list['updateUrl'] = $this->updateUrl;
     }
     if ($this->requirements !== array() && $this->requirements !== null) {
         $list['requirements'] = $this->requirements;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 7
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->courseId !== null) {
         $list['courseId'] = $this->courseId;
     }
     if ($this->endDate !== null) {
         $list['endDate'] = $this->endDate;
     }
     if ($this->startDate !== null) {
         $list['startDate'] = $this->startDate;
     }
     if ($this->zipFile !== null) {
         $list['zipFile'] = $this->zipFile;
     }
     if ($this->sampleSolution !== null) {
         $list['sampleSolution'] = $this->sampleSolution;
     }
     if ($this->sheetFile !== null) {
         $list['sheetFile'] = $this->sheetFile;
     }
     if ($this->exercises !== array()) {
         $list['exercises'] = $this->exercises;
     }
     if ($this->groupSize !== null) {
         $list['groupSize'] = $this->groupSize;
     }
     if ($this->sheetName !== null) {
         $list['sheetName'] = $this->sheetName;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 8
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->leaderId !== null) {
         $list['leaderId'] = $this->leaderId;
     }
     if ($this->submissionId !== null) {
         $list['submissionId'] = $this->submissionId;
     }
     if ($this->exerciseId !== null) {
         $list['exerciseId'] = $this->exerciseId;
     }
     if ($this->exerciseSheetId !== null) {
         $list['exerciseSheetId'] = $this->exerciseSheetId;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 9
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->fileId !== null) {
         $list['fileId'] = $this->fileId;
     }
     if ($this->displayName !== null) {
         $list['displayName'] = $this->displayName;
     }
     if ($this->address !== null) {
         $list['address'] = $this->address;
     }
     if ($this->timeStamp !== null) {
         $list['timeStamp'] = $this->timeStamp;
     }
     if ($this->fileSize !== null) {
         $list['fileSize'] = $this->fileSize;
     }
     if ($this->hash !== null) {
         $list['hash'] = $this->hash;
     }
     if ($this->body !== null) {
         $list['body'] = $this->body;
     }
     if ($this->comment !== null) {
         $list['comment'] = $this->comment;
     }
     if ($this->mimeType !== null) {
         $list['mimeType'] = $this->mimeType;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 10
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->name !== null) {
         $list['name'] = $this->name;
     }
     if ($this->address !== null) {
         $list['address'] = $this->address;
     }
     if ($this->option !== null) {
         $list['option'] = $this->option;
     }
     if ($this->prefix !== null) {
         $list['prefix'] = $this->prefix;
     }
     if ($this->links !== null && $this->links !== array()) {
         $list['links'] = $this->links;
     }
     if ($this->status !== null) {
         $list['status'] = $this->status;
     }
     if ($this->classFile !== null) {
         $list['classFile'] = $this->classFile;
     }
     if ($this->className !== null) {
         $list['className'] = $this->className;
     }
     if ($this->localPath !== null) {
         $list['localPath'] = $this->localPath;
     }
     if ($this->def !== null && $this->def !== array()) {
         $list['def'] = $this->def;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 11
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->course !== null) {
         $list['course'] = $this->course;
     }
     if ($this->status !== null) {
         $list['status'] = $this->status;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 12
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->transactionId !== null) {
         $list['transactionId'] = $this->transactionId;
     }
     if ($this->durability !== null) {
         $list['durability'] = $this->durability;
     }
     if ($this->authentication !== null) {
         $list['authentication'] = $this->authentication;
     }
     if ($this->content !== null) {
         $list['content'] = $this->content;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 13
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->processId !== null) {
         $list['processId'] = $this->processId;
     }
     if ($this->exercise !== null) {
         $list['exercise'] = $this->exercise;
     }
     if ($this->target !== null) {
         $list['target'] = $this->target;
     }
     if ($this->parameter !== null) {
         $list['parameter'] = $this->parameter;
     }
     if ($this->attachment !== null && $this->attachment !== array()) {
         $list['attachment'] = $this->attachment;
     }
     if ($this->workFiles !== null && $this->workFiles !== array()) {
         $list['workFiles'] = $this->workFiles;
     }
     if ($this->submission !== null) {
         $list['submission'] = $this->submission;
     }
     if ($this->rawSubmission !== null) {
         $list['rawSubmission'] = $this->rawSubmission;
     }
     if ($this->marking !== null) {
         $list['marking'] = $this->marking;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 14
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->courseId !== null) {
         $list['courseId'] = $this->courseId;
     }
     if ($this->sheetId !== null) {
         $list['sheetId'] = $this->sheetId;
     }
     if ($this->maxPoints !== null) {
         $list['maxPoints'] = $this->maxPoints;
     }
     if ($this->type !== null) {
         $list['type'] = $this->type;
     }
     if ($this->link !== null) {
         $list['link'] = $this->link;
     }
     if ($this->submissions !== array() && $this->submissions !== null) {
         $list['submissions'] = $this->submissions;
     }
     if ($this->bonus !== null) {
         $list['bonus'] = $this->bonus;
     }
     if ($this->attachments !== array() && $this->attachments !== null) {
         $list['attachments'] = $this->attachments;
     }
     if ($this->fileTypes !== array() && $this->fileTypes !== null) {
         $list['fileTypes'] = $this->fileTypes;
     }
     if ($this->linkName !== null) {
         $list['linkName'] = $this->linkName;
     }
     if ($this->submittable !== null) {
         $list['submittable'] = $this->submittable;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 15
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->date !== null) {
         $list['date'] = $this->date;
     }
     if ($this->file !== null) {
         $list['file'] = $this->file;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 16
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->choiceId !== null) {
         $list['choiceId'] = $this->choiceId;
     }
     if ($this->formId !== null) {
         $list['formId'] = $this->formId;
     }
     if ($this->text !== null) {
         $list['text'] = $this->text;
     }
     if ($this->correct !== null) {
         $list['correct'] = $this->correct;
     }
     if ($this->submissionId !== null) {
         $list['submissionId'] = $this->submissionId;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 17
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->name !== null) {
         $list['name'] = $this->name;
     }
     if ($this->semester !== null) {
         $list['semester'] = $this->semester;
     }
     if ($this->exerciseSheets !== array()) {
         $list['exerciseSheets'] = $this->exerciseSheets;
     }
     if ($this->defaultGroupSize !== null) {
         $list['defaultGroupSize'] = $this->defaultGroupSize;
     }
     if ($this->settings !== null && $this->settings !== array()) {
         $list['settings'] = $this->settings;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 18
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->localRef !== null) {
         $list['localRef'] = $this->localRef;
     }
     if ($this->globalRef !== null) {
         $list['globalRef'] = $this->globalRef;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 19
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->member !== null) {
         $list['member'] = $this->member;
     }
     if ($this->leader !== null) {
         $list['leader'] = $this->leader;
     }
     if ($this->sheet !== null) {
         $list['sheet'] = $this->sheet;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 20
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->formId !== null) {
         $list['formId'] = $this->formId;
     }
     if ($this->exerciseId !== null) {
         $list['exerciseId'] = $this->exerciseId;
     }
     if ($this->type !== null) {
         $list['type'] = $this->type;
     }
     if ($this->solution !== null) {
         $list['solution'] = $this->solution;
     }
     if ($this->task !== null) {
         $list['task'] = $this->task;
     }
     if ($this->choices !== array() && $this->choices !== null) {
         $list['choices'] = $this->choices;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 21
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->text !== null) {
         $list['text'] = $this->text;
     }
     if ($this->exerciseId !== null) {
         $list['exerciseId'] = $this->exerciseId;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 22
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->name !== null) {
         $list['name'] = $this->name;
     }
     if ($this->address !== null) {
         $list['address'] = $this->address;
     }
     if ($this->target !== null) {
         $list['target'] = $this->target;
     }
     if ($this->prefix !== null) {
         $list['prefix'] = $this->prefix;
     }
     if ($this->priority !== null) {
         $list['priority'] = $this->priority;
     }
     if ($this->owner !== null) {
         $list['owner'] = $this->owner;
     }
     if ($this->relevanz !== null) {
         $list['relevanz'] = $this->relevanz;
     }
     if ($this->targetName !== null) {
         $list['targetName'] = $this->targetName;
     }
     if ($this->classFile !== null) {
         $list['classFile'] = $this->classFile;
     }
     if ($this->className !== null) {
         $list['className'] = $this->className;
     }
     if ($this->localPath !== null) {
         $list['localPath'] = $this->localPath;
     }
     if ($this->path !== null) {
         $list['path'] = $this->path;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 23
0
 /**
  * Tests the Joomla\Data\DataObject::jsonSerialize method.
  *
  * Note, this is not completely backward compatible. Previous this would just return the class name.
  *
  * @return  void
  *
  * @covers  Joomla\Data\DataObject::jsonSerialize
  * @since   1.0
  */
 public function testJsonSerialize()
 {
     $this->assertEquals('{}', json_encode($this->instance->jsonSerialize()), 'Empty object.');
     $this->instance->bind(array('title' => 'Simple Object'));
     $this->assertEquals('{"title":"Simple Object"}', json_encode($this->instance->jsonSerialize()), 'Simple object.');
 }
Esempio n. 24
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->request !== null) {
         $list['request'] = $this->request;
     }
     if ($this->response !== array()) {
         $list['response'] = json_encode($this->response);
     }
     if ($this->affectedRows !== null) {
         $list['affectedRows'] = $this->affectedRows;
     }
     if ($this->insertId !== null) {
         $list['insertId'] = $this->insertId;
     }
     if ($this->errno !== null) {
         $list['errno'] = $this->errno;
     }
     if ($this->numRows !== null) {
         $list['numRows'] = $this->numRows;
     }
     if ($this->checkSession !== null) {
         $list['checkSession'] = $this->checkSession;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 25
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->studentId !== null) {
         $list['studentId'] = $this->studentId;
     }
     if ($this->exerciseId !== null) {
         $list['exerciseId'] = $this->exerciseId;
     }
     if ($this->exerciseSheetId !== null) {
         $list['exerciseSheetId'] = $this->exerciseSheetId;
     }
     if ($this->comment !== null) {
         $list['comment'] = $this->comment;
     }
     if ($this->file !== null && $this->file !== array()) {
         $list['file'] = $this->file;
     }
     if ($this->accepted !== null) {
         $list['accepted'] = $this->accepted;
     }
     if ($this->selectedForGroup !== null) {
         $list['selectedForGroup'] = $this->selectedForGroup;
     }
     if ($this->date !== null) {
         $list['date'] = $this->date;
     }
     if ($this->exerciseNumber !== null) {
         $list['exerciseNumber'] = $this->exerciseNumber;
     }
     if ($this->flag !== null) {
         $list['flag'] = $this->flag;
     }
     if ($this->leaderId !== null) {
         $list['leaderId'] = $this->leaderId;
     }
     if ($this->hideFile !== null) {
         $list['hideFile'] = $this->hideFile;
     }
     if ($this->exerciseName !== null) {
         $list['exerciseName'] = $this->exerciseName;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 26
0
 public function jsonSerialize()
 {
     $list = array();
     if ($this->param !== null) {
         $list['param'] = $this->param;
     }
     // ruft auch die Serialisierung des darüber liegenden Objekts auf (Object.php)
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 27
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->courseId !== null) {
         $list['courseId'] = $this->courseId;
     }
     if ($this->exerciseTypeId !== null) {
         $list['exerciseTypeId'] = $this->exerciseTypeId;
     }
     if ($this->percentage !== null) {
         $list['percentage'] = $this->percentage;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 28
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->exerciseId !== null) {
         $list['exerciseId'] = $this->exerciseId;
     }
     if ($this->file !== null) {
         $list['file'] = $this->file;
     }
     if ($this->processId !== null) {
         $list['processId'] = $this->processId;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 29
0
 /**
  * the json serialize function
  *
  * @return an array to serialize the object
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->name !== null) {
         $list['name'] = $this->name;
     }
     if ($this->state !== null) {
         $list['state'] = $this->state;
     }
     if ($this->type !== null) {
         $list['type'] = $this->type;
     }
     return array_merge($list, parent::jsonSerialize());
 }
Esempio n. 30
0
 /**
  * the json serialize function
  */
 public function jsonSerialize()
 {
     $list = array();
     if ($this->id !== null) {
         $list['id'] = $this->id;
     }
     if ($this->submission !== null && $this->submission !== array()) {
         $list['submission'] = $this->submission;
     }
     if ($this->tutorId !== null) {
         $list['tutorId'] = $this->tutorId;
     }
     if ($this->tutorComment !== null) {
         $list['tutorComment'] = $this->tutorComment;
     }
     if ($this->file !== null) {
         $list['file'] = $this->file;
     }
     if ($this->points !== null) {
         $list['points'] = $this->points;
     }
     if ($this->outstanding !== null) {
         $list['outstanding'] = $this->outstanding;
     }
     if ($this->status !== null) {
         $list['status'] = $this->status;
     }
     if ($this->date !== null) {
         $list['date'] = $this->date;
     }
     if ($this->hideFile !== null) {
         $list['hideFile'] = $this->hideFile;
     }
     return array_merge($list, parent::jsonSerialize());
 }