diagramo-janis /web/editor/common/entities.php

Language PHP Lines 121
MD5 Hash e893b1f50632115d96c33eb8a7af3783 Estimated Cost $2,408 (why?)
Repository https://bitbucket.org/keento/diagramo-janis View Raw File View Project SPDX
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
$currentFolder = dirname(__FILE__);


class Diagram {

	public $id;
	public $hash;
	public $title;
	public $description;
	public $public;
	public $createdDate;
	public $lastUpdate;
	public $size;

	function loadFromSQL($row) {
		$this->id = is_null($row['id']) ? null : $row['id'];
		$this->hash = is_null($row['hash']) ? null : $row['hash'];
		$this->title = is_null($row['title']) ? null : $row['title'];
		$this->description = is_null($row['description']) ? null : $row['description'];
		$this->public = is_null($row['public']) ? null : $row['public'];
		$this->createdDate = is_null($row['createdDate']) ? null : $row['createdDate'];
		$this->lastUpdate = is_null($row['lastUpdate']) ? null : $row['lastUpdate'];
		$this->size = is_null($row['size']) ? null : $row['size'];
	}
}

class Diagramdata {
	const TYPE_DIA = 'dia';
	const TYPE_SVG = 'svg';
	const TYPE_JPG = 'jpg';
	const TYPE_PNG = 'png';

	public $diagramId;
	public $type;
	public $fileName;
	public $fileSize;
	public $lastUpdate;

	function loadFromSQL($row) {
		$this->diagramId = is_null($row['diagramId']) ? null : $row['diagramId'];
		$this->type = is_null($row['type']) ? null : $row['type'];
		$this->fileName = is_null($row['fileName']) ? null : $row['fileName'];
		$this->fileSize = is_null($row['fileSize']) ? null : $row['fileSize'];
		$this->lastUpdate = is_null($row['lastUpdate']) ? null : $row['lastUpdate'];
	}
}

class Invitation {

	public $id;
	public $diagramId;
	public $email;
	public $token;
	public $createdDate;

	function loadFromSQL($row) {
		$this->id = is_null($row['id']) ? null : $row['id'];
		$this->diagramId = is_null($row['diagramId']) ? null : $row['diagramId'];
		$this->email = is_null($row['email']) ? null : $row['email'];
		$this->token = is_null($row['token']) ? null : $row['token'];
		$this->createdDate = is_null($row['createdDate']) ? null : $row['createdDate'];
	}
}

class Setting {

	public $name;
	public $value;

	function loadFromSQL($row) {
		$this->name = is_null($row['name']) ? null : $row['name'];
		$this->value = is_null($row['value']) ? null : $row['value'];
	}
}

class User {

	public $id;
	public $email;
	public $password;
	public $name;
	public $createdDate;
	public $lastLoginDate;
	public $lastLoginIP;
	public $lastBrowserType;

	function loadFromSQL($row) {
		$this->id = is_null($row['id']) ? null : $row['id'];
		$this->email = is_null($row['email']) ? null : $row['email'];
		$this->password = is_null($row['password']) ? null : $row['password'];
		$this->name = is_null($row['name']) ? null : $row['name'];
		$this->createdDate = is_null($row['createdDate']) ? null : $row['createdDate'];
		$this->lastLoginDate = is_null($row['lastLoginDate']) ? null : $row['lastLoginDate'];
		$this->lastLoginIP = is_null($row['lastLoginIP']) ? null : $row['lastLoginIP'];
		$this->lastBrowserType = is_null($row['lastBrowserType']) ? null : $row['lastBrowserType'];
	}
}

class Userdiagram {
	const STATUS_ACCEPTED = 'accepted';
	const STATUS_PENDING = 'pending';
	const STATUS_KICKEDOF = 'kickedof';
	const LEVEL_EDITOR = 'editor';
	const LEVEL_AUTHOR = 'author';

	public $userId;
	public $diagramId;
	public $invitedDate;
	public $status;
	public $level;

	function loadFromSQL($row) {
		$this->userId = is_null($row['userId']) ? null : $row['userId'];
		$this->diagramId = is_null($row['diagramId']) ? null : $row['diagramId'];
		$this->invitedDate = is_null($row['invitedDate']) ? null : $row['invitedDate'];
		$this->status = is_null($row['status']) ? null : $row['status'];
		$this->level = is_null($row['level']) ? null : $row['level'];
	}
}
?>
Back to Top