本文整理汇总了PHP中Object::jsonSerialize方法的典型用法代码示例。如果您正苦于以下问题:PHP Object::jsonSerialize方法的具体用法?PHP Object::jsonSerialize怎么用?PHP Object::jsonSerialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Object
的用法示例。
在下文中一共展示了Object::jsonSerialize方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jsonSerialize
/**
* 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());
}
示例2: jsonSerialize
/**
* 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());
}
示例3: jsonSerialize
/**
* 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());
}
示例4: jsonSerialize
/**
* 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());
}
示例5: jsonSerialize
/**
* 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());
}
示例6: jsonSerialize
/**
* 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());
}
示例7: jsonSerialize
/**
* 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());
}
示例8: jsonSerialize
/**
* 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());
}
示例9: jsonSerialize
/**
* 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());
}
示例10: jsonSerialize
/**
* 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());
}
示例11: jsonSerialize
/**
* 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());
}
示例12: jsonSerialize
/**
* 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());
}
示例13: jsonSerialize
/**
* 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());
}
示例14: jsonSerialize
/**
* 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());
}
示例15: jsonSerialize
/**
* 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());
}