use __construct for constructors instead of class name

This commit is contained in:
Uwe Steinmann 2020-03-10 09:43:04 +01:00
parent 3d5f321713
commit 30112e4b21
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class SeedDMS_Core_Transmittal {
*/ */
var $_dms; var $_dms;
function SeedDMS_Core_Transmittal($id, $user, $name, $comment, $isPublic=0, $date='') { function __construct($id, $user, $name, $comment, $isPublic=0, $date='') {
$this->_id = $id; $this->_id = $id;
$this->_name = $name; $this->_name = $name;
$this->_comment = $comment; $this->_comment = $comment;
@ -312,7 +312,7 @@ class SeedDMS_Core_TransmittalItem {
*/ */
var $_date; var $_date;
function SeedDMS_Core_TransmittalItem($id, $transmittal, $content, $date='') { function __construct($id, $transmittal, $content, $date='') {
$this->_id = $id; $this->_id = $id;
$this->_transmittal = $transmittal; $this->_transmittal = $transmittal;
$this->_content = $content; $this->_content = $content;

View File

@ -62,7 +62,7 @@ class SeedDMS_Core_Role { /* {{{ */
const role_admin = '1'; const role_admin = '1';
const role_guest = '2'; const role_guest = '2';
function SeedDMS_Core_Role($id, $name, $role, $noaccess=array()) { /* {{{ */ function __construct($id, $name, $role, $noaccess=array()) { /* {{{ */
$this->_id = $id; $this->_id = $id;
$this->_name = $name; $this->_name = $name;
$this->_role = $role; $this->_role = $role;