Skip to content

Commit

Permalink
classname constructors change to __construct()
Browse files Browse the repository at this point in the history
PHP 4 style constructors (methods that have the same name as the class
they are defined in) are deprecated, and will be removed in the future.
PHP 7 will emit E_DEPRECATED if a PHP 4 constructor is the only
constructor defined within a class. Classes that implement a
__construct() method are unaffected.
  • Loading branch information
kataigp committed Apr 5, 2016
1 parent 61c52de commit c7d2e3f
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Admin extends EasyDeposit
{
function Admin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_adminInterface();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/adminlogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class AdminLogin extends EasyDeposit
{
function AdminLogin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_noChecks();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/crossrefdoilookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class CrossRefDOILookup extends EasyDeposit
{
function CrossRefDOILookup()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/crossrefdoimetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class CrossRefDOIMetadata extends EasyDeposit
{
function CrossREFDOIMetadata()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/deposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Deposit extends EasyDeposit
{

function Deposit()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/depositcredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class DepositCredentials extends EasyDeposit
{
function DepositCredentials()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/easydeposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EasyDeposit extends CI_Controller {
* Constructor
*
*/
function EasyDeposit()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Email extends EasyDeposit
{

function Email()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/github.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class GitHub extends EasyDeposit
{

function GitHub()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/ldaplogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LDAPLogin extends EasyDeposit
* LDAP server. The user id is set to be the netid with a random number
* appended to allow multiple deposits by the same user.
*/
function LDAPLogin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_authN();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Metadata extends EasyDeposit
{

function Metadata()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/multipledeposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class MultipleDeposit extends EasyDeposit
{

function MultipleDeposit()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/multipledepositcredentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MultipleDepositCredentials extends EasyDeposit
{
function MultipleDepositCredentials()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/multiplethankyou.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class MultipleThankYou extends EasyDeposit
{
function MultipleThankYou()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/nologin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Nologin extends EasyDeposit
* userid (a random number generated with mt_rand). If you don't want
* users to have to login to use the system, make use of this login class.
*/
function Nologin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_authN();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/retrieveservicedocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RetrieveServiceDocument extends EasyDeposit
* Retrieve a service document from a repository using a pre-configured
* set of credentials from the easydeposit.php configuration file
*/
function RetrieveServiceDocument()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/selectrepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class SelectRepository extends EasyDeposit
{

function SelectRepository()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/servicedocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class ServiceDocument extends EasyDeposit
{

function ServiceDocument()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/servicedocumentlogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ServiceDocumentLogin extends EasyDeposit
* You can use this login class to delegate authentication to your
* repository.
*/
function ServiceDocumentLogin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_authN();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/ssologin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SSOLogin extends EasyDeposit
* The user id is set to be the REMOTE_USER with a random number
* appended to allow multiple deposits by the same user.
*/
function SSOLogin()
function __construct()
{
// State that this is an authentication class
EasyDeposit::_authN();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Template extends EasyDeposit
{

function Template()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/thankyou.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ThankYou extends EasyDeposit
{
function ThankYou()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/title.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Title extends EasyDeposit
{

function Title()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/uploadfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class UploadFiles extends EasyDeposit
{

function UploadFiles()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Verify extends EasyDeposit
{

function Verify()
function __construct()
{
// Initalise the parent
parent::__construct();
Expand Down

0 comments on commit c7d2e3f

Please sign in to comment.