예제 #1
0
파일: Cast.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #2
0
파일: User.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #3
0
파일: Info.php 프로젝트: bjtenao/tudu-web
 /**
  *
  * @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();
 }
예제 #4
0
파일: Class.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #5
0
파일: Flow.php 프로젝트: bjtenao/tudu-web
 /**
  *
  * @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();
 }
예제 #6
0
파일: Access.php 프로젝트: bjtenao/tudu-web
 /**
  * 
  * @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();
 }
예제 #7
0
파일: User.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #8
0
파일: Iprule.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #9
0
 /**
  * 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();
 }
예제 #10
0
파일: Rule.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #11
0
파일: Plan.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #12
0
 /**
  * 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();
 }
예제 #13
0
파일: Group.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #14
0
 /**
  * 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();
 }
예제 #15
0
파일: Option.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #16
0
파일: Role.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #17
0
 /**
  * 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();
 }
예제 #18
0
파일: Group.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #19
0
파일: Rule.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #20
0
파일: Filter.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #21
0
 /**
  * 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();
 }
예제 #22
0
파일: Adjust.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #23
0
 /**
  * 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();
 }
예제 #24
0
파일: Total.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #25
0
 /**
  * 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();
 }
예제 #26
0
파일: Email.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #27
0
 /**
  * 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();
 }
예제 #28
0
파일: Step.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #29
0
파일: Date.php 프로젝트: bjtenao/tudu-web
 /**
  * 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();
 }
예제 #30
0
파일: Share.php 프로젝트: bjtenao/tudu-web
 /**
  * 
  * 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();
 }