/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->castId = $record['castid']; $this->castName = $record['castname']; $this->isDefault = $record['isdefault']; parent::__construct(); }
/** * Constructor * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->appId = $record['appid']; $this->itemId = $record['itemid']; $this->role = $record['role']; parent::__construct(); }
/** * * @param $record */ public function __construct(array $record) { $this->startIp = $this->_toInt($record['startip']); $this->endIp = $this->_toInt($record['endip']); $this->province = $record['province']; $this->city = $record['city']; parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->boardId = $record['boardid']; $this->classId = $record['classid']; $this->className = $record['classname']; $this->orderNum = $this->_toInt($record['ordernum']); parent::__construct(); }
/** * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->tuduId = $record['tuduid']; $this->currentStepId = $record['currentstepid']; $this->flowId = $record['flowid']; $this->steps = Dao_Td_Tudu_Flow::parseSteps($record['steps']); parent::__construct(); }
/** * * @param array $record */ public function __construct(array $record) { $this->accessId = $this->_toInt($record['accessid']); $this->accessName = $record['accessname']; $this->valueType = $record['valuetype']; $this->formType = $record['formtype']; $this->defaultValue = $record['defaultvalue']; parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->deptId = $record['deptid']; $this->trueName = $record['truename']; $this->deptName = $record['deptname']; parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->type = $this->_toInt($record['type']); $this->rule = $this->_formatRule($record['rule']); $this->isValid = $this->_toBoolean($record['isvalid']); $this->exception = !empty($record['exception']) ? explode("\n", $record['exception']) : null; parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->date = $this->_toInt($record['date']); $this->plan = json_decode($record['plan'], true); $this->memo = isset($record['memo']) ? $record['memo'] : null; parent::__construct(); }
/** * Constructor * * @param array $record */ public function __construct(array $record) { $this->ruleId = $record['ruleid']; $this->week = $this->_toInt($record['week']); $this->status = $this->_toBoolean($record['status']); $this->checkinTime = explode(':', Dao_App_Attend_Schedule::formatTime($record['checkintime'])); $this->checkoutTime = explode(':', Dao_App_Attend_Schedule::formatTime($record['checkouttime'])); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = isset($record['uniqueid']) ? $record['uniqueid'] : null; $this->date = $this->_toInt($record['date']); $this->memo = $record['memo']; $this->updateTime = $this->_toTimestamp($record['updatetime']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->tuduId = $record['tuduid']; $this->notifyTime = $this->_toInt($record['notifytime']); $this->notifyType = $this->_toInt($record['notifytype']); $this->location = $record['location']; $this->isAllday = $this->_toBoolean($record['isallday']); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->groupId = $record['groupid']; $this->uniqueId = $record['uniqueid']; $this->isSystem = $this->_toBoolean($record['issystem']); $this->groupName = $record['groupname']; $this->bgColor = $record['bgcolor']; $this->orderNum = $this->_toInt($record['ordernum']); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->plan = json_decode($record['plan'], true); $this->cycleNum = $this->_toInt($record['cyclenum']); $this->memo = isset($record['memo']) ? $record['memo'] : null; $this->effectDate = $this->_toTimestamp($record['effectdate']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->tuduId = $record['tuduid']; $this->optionId = $record['optionid']; $this->text = $record['text']; $this->voteCount = $this->_toInt($record['votecount']); $this->orderNum = isset($record['ordernum']) ? $this->_toInt($record['ordernum']) : null; $this->voters = isset($record['voters']) ? $this->_formatVoters($record['voters']) : null; parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->roleId = $record['roleid']; $this->roleName = $record['rolename']; $this->isSystem = $record['issystem']; $this->isLocked = $record['islocked']; $this->adminLevel = $record['adminlevel']; parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->categoryId = $record['categoryid']; $this->orgId = $record['orgid']; $this->categoryName = $record['categoryname']; $this->flowSteps = Dao_App_Attend_Category::formatSteps($record['flowsteps']); $this->status = $this->_toInt($record['status']); $this->isSystem = $this->_toBoolean($record['issystem']); $this->createTime = $this->_toTimestamp($record['createtime']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->groupId = $record['groupid']; $this->groupName = $record['groupname']; $this->isSystem = $record['issystem']; $this->isLocked = $record['islocked']; $this->adminLevel = $record['adminlevel']; $this->orderNum = $this->_toInt($record['ordernum']); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->ruleId = $record['ruleid']; $this->uniqueId = $record['uniqueid']; $this->description = $record['description']; $this->operation = $record['operation']; $this->mailRemind = isset($record['mailremind']) ? json_decode($record['mailremind'], true) : null; $this->value = $record['value']; $this->isValid = $this->_toBoolean($record['isvalid']); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->filterId = $record['filterid']; $this->ruleId = $record['ruleid']; $this->what = $record['what']; $this->type = $record['type']; $this->valueString = $record['value']; $this->value = $this->_formatValue($record['value'], $this->what); $this->isValid = $this->_toBoolean($record['isvalid']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->boardId = $record['boardid']; $this->templateId = $record['templateid']; $this->creator = $record['creator']; $this->name = $record['name']; $this->content = isset($record['content']) ? $record['content'] : null; $this->orderNum = $this->_toInt($record['ordernum']); parent::__construct(); }
/** * Constructor * * @param $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->adjustId = $record['adjustid']; $this->subject = $record['subject']; $this->startTime = $this->_toTimestamp($record['starttime']); $this->endTime = $this->_toTimestamp($record['endtime']); $this->type = $this->_toInt($record['type']); $this->createTime = $this->_toTimestamp($record['createtime']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->checkinId = $record['checkinid']; $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->date = $this->_toTimestamp($record['date']); $this->type = $this->_toInt($record['type']); $this->status = $this->_toInt($record['status']); $this->ip = long2ip($record['ip']); $this->address = $record['address']; $this->createTime = $this->_toTimestamp($record['createtime']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->categoryId = $record['categoryid']; $this->categoryName = $record['categoryname']; $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->trueName = isset($record['truename']) ? $record['truename'] : null; $this->deptName = isset($record['deptname']) ? $record['deptname'] : null; $this->date = $this->_toInt($record['date']); $this->total = $this->_toFloat($record['total']); $this->updateTime = $this->_toTimestamp($record['updatetime']); parent::__construct(); }
/** * Constructor * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->scheduleId = $record['scheduleid']; $this->name = $record['name']; $this->isSystem = $this->_toBoolean($record['issystem']); $this->bgcolor = isset($record['bgcolor']) ? $record['bgcolor'] : null; $this->ruleId = isset($record['ruleid']) ? $record['ruleid'] : null; $this->week = isset($record['week']) ? $this->_toInt($record['week']) : null; $this->checkinTime = Dao_App_Attend_Schedule::formatTime($record['checkintime']); $this->checkoutTime = Dao_App_Attend_Schedule::formatTime($record['checkouttime']); $this->lateStandard = $this->_toInt($record['latestandard']); $this->lateCheckin = $this->_toInt($record['latecheckin']); $this->leaveCheckout = $this->_toInt($record['leavecheckout']); $this->status = isset($record['status']) ? $this->_toBoolean($record['status']) : null; $this->createTime = $this->_toTimestamp($record['createtime']); if (null !== $record['checkouttime'] && null !== $record['checkintime']) { $workTime = (int) $record['checkouttime'] - (int) $record['checkintime']; } else { $workTime = 0; } $this->workTime = Dao_App_Attend_Schedule::formatTime($workTime, true); parent::__construct(); }
/** * Constructor * * @param array $records */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->userId = $record['userid']; $this->address = $record['address']; $this->password = $record['password']; $this->protocol = $record['protocol']; $this->host = $record['host']; $this->port = $this->_toInt($record['port']); $this->isSsl = $this->_toBoolean($record['isssl']); $this->type = $this->_toInt($record['type']); $this->orderNum = $this->_toInt($record['ordernum']); $this->lastCheckInfo = empty($record['lastcheckinfo']) ? null : explode("\n", $record['lastcheckinfo'], 3); $this->lastCheckTime = isset($record['lastchecktime']) ? $this->_toTimestamp($record['lastchecktime']) : null; $arr = explode('@', $this->address); $this->domainName = $arr[1]; $this->uId = $arr[0]; if (is_array($this->lastCheckInfo)) { $this->unreadNum = $this->_toInt($this->lastCheckInfo[0]); if (!empty($this->lastChcekInfo[1])) { $this->lastMailId = $this->lastChcekInfo[1]; } if (!empty($this->lastChcekInfo[2])) { $this->lastMailSubject = $this->lastChcekInfo[2]; } if (!empty($this->lastChcekInfo[3])) { $this->lastMailFrom = $this->lastChcekInfo[3]; } } parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->fileId = $record['fileid']; $this->fileName = $record['filename']; $this->fileExt = isset($record['fileext']) ? array_pop(explode('.', $record['filename'])) : null; $this->size = $this->_toInt($record['size']); $this->type = isset($record['type']) ? $record['type'] : null; $this->path = isset($record['path']) ? $record['path'] : null; $this->flowId = $record['flowid']; $this->uniqueId = $record['uniqueid']; $this->isAttach = isset($record['isattach']) ? $this->_toBoolean($record['isattach']) : null; $this->createTime = $this->_toTimestamp($record['createtime']); parent::__construct(); }
/** * Constructor * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->tuduId = $record['tuduid']; $this->stepId = $record['stepid']; $this->uniqueId = $record['uniqueid']; $this->prevStepId = $record['prevstepid']; $this->nextStepId = $record['nextstepid']; $this->type = $this->_toInt($record['type']); $this->stepStatus = isset($record['stepstatus']) ? $this->_toInt($record['stepstatus']) : null; $this->isDone = $this->_toBoolean($record['isdone']); $this->orderNum = $this->_toInt($record['ordernum']); $this->createTime = $this->_toTimestamp($record['createtime']); parent::__construct(); }
/** * Construct * * @param array $record */ public function __construct(array $record) { $this->orgId = $record['orgid']; $this->uniqueId = $record['uniqueid']; $this->trueName = isset($record['truename']) ? $record['truename'] : null; $this->deptName = isset($record['deptname']) ? $record['deptname'] : null; $this->date = $this->_toTimestamp($record['date']); $this->isLate = $this->_toBoolean($record['islate']); $this->isLeave = $this->_toBoolean($record['isleave']); $this->isWork = $this->_toBoolean($record['iswork']); $this->isAbnormalIp = isset($record['isabnormalip']) ? $this->_toBoolean($record['isabnormalip']) : null; $this->checkinStatus = Dao_App_Attend_Date::formatCheckinStatus($this->_toInt($record['checkinstatus'])); $this->workTime = $this->_toInt($record['worktime']); $this->memo = isset($record['memo']) ? Dao_App_Attend_Date::formatMemo($record['memo']) : null; $this->updateTime = $this->_toTimestamp($record['updatetime']); $this->categories = !empty($record['categories']) ? explode(',', $record['categories']) : array(); parent::__construct(); }
/** * * Constructor * @param array $record */ public function __construct(array $record) { $this->objectId = $record['objectid']; $this->ownerId = $record['ownerid']; $this->targetId = $record['targetid']; $this->objectType = $record['objecttype']; $this->ownerInfo = $record['ownerinfo']; $this->orgId = isset($record['orgid']) ? $record['orgid'] : null; $this->folderName = isset($record['foldername']) ? $record['foldername'] : null; $this->isSystem = isset($record['issystem']) ? $this->_toBoolean($record['issystem']) : null; $this->fileName = isset($record['filename']) ? $record['filename'] : null; $this->size = isset($record['size']) ? $record['size'] : null; $this->createTime = isset($record['createtime']) ? $this->_toTimestamp($record['createtime']) : null; if (isset($record['ownerinfo']) || !empty($record['ownerinfo'])) { $array = explode("\n", $record['ownerinfo']); $this->ownerEmail = $array[0]; $this->ownerTrueName = $array[1]; } $this->fromUniqueId = isset($record['fromuniqueid']) ? $record['fromuniqueid'] : null; $this->fromFileId = isset($record['fromfileid']) ? $record['fromfileid'] : null; $this->attachFileId = isset($record['attachfileid']) ? $record['attachfileid'] : null; $this->isFromAttach = isset($record['isfromattach']) ? $this->_toBoolean($record['isfromattach']) : null; parent::__construct(); }