mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
use __construct for constructors instead of class name
This commit is contained in:
parent
3d5f321713
commit
30112e4b21
|
@ -79,7 +79,7 @@ class SeedDMS_Core_Transmittal {
|
|||
*/
|
||||
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->_name = $name;
|
||||
$this->_comment = $comment;
|
||||
|
@ -312,7 +312,7 @@ class SeedDMS_Core_TransmittalItem {
|
|||
*/
|
||||
var $_date;
|
||||
|
||||
function SeedDMS_Core_TransmittalItem($id, $transmittal, $content, $date='') {
|
||||
function __construct($id, $transmittal, $content, $date='') {
|
||||
$this->_id = $id;
|
||||
$this->_transmittal = $transmittal;
|
||||
$this->_content = $content;
|
||||
|
|
|
@ -62,7 +62,7 @@ class SeedDMS_Core_Role { /* {{{ */
|
|||
const role_admin = '1';
|
||||
const role_guest = '2';
|
||||
|
||||
function SeedDMS_Core_Role($id, $name, $role, $noaccess=array()) { /* {{{ */
|
||||
function __construct($id, $name, $role, $noaccess=array()) { /* {{{ */
|
||||
$this->_id = $id;
|
||||
$this->_name = $name;
|
||||
$this->_role = $role;
|
||||
|
|
Loading…
Reference in New Issue
Block a user