Odyssey
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
CuAdmin Class Reference

Public Member Functions

 __construct (string $creditUnion, CuAdminRepo $cuAdminRepo)
 

Public Attributes

const CU_SHOWAVAILABLE = 1
 
const CU_SHOWIMAGES = 2
 
const CU_3RDPARTYRDC = 4
 
const CU_MAILTXNS = 8
 
const CU_SAVETXNS = 16
 
const CU_COLLECTEMAIL = 32
 
const CU_CALCRUNBAL = 64
 
const CU_SHOWDEPDIVIDEND = 128
 
const CU_SHOWLNINTEREST = 256
 
const CU_SHOWLNTXNDESC = 512
 
const CU_SHOWLNTXNSPLIT = 1024
 
const CU_HIDENA = 2048
 
const CU_SORTORDER1 = 4096
 
const CU_SORTORDER2 = 8192
 
const CU_SORTORDER3 = 16384
 
const CU_SORTORDER4 = 32768
 
const CU_LNBALUNUSABLE = 65536
 
const CU_LNSORT1 = 131072
 
const CU_LNSORT2 = 262144
 
const CU_QIFDOWN = 524288
 
const CU_HIDELOANDATE = 1048576
 
const CU_SORTORDER5 = 2097152
 
const CU_MNYDOWN = 4194304
 
const CU_QKNDOWN = 8388608
 
const CU_SHOWNCUA = 16777216
 
const CU_SHOWLNRATE = 33554432
 
const CU_SHOWARCLINK = 67108864
 
const CU_MEMRESET = 134217728
 
const CU_ALLOWSWITCH = 268435456
 
const CU_PKT_SWITCH = 536870912
 
const CU_HIDE_PYR = 1073741824
 
const CU2_HIDE_PAYOFF = 1
 
const CU2_CALL_PAYOFF = 2
 
const CU2_SPEC18 = 4
 
const CU2_SHOWCCRATE = 8
 
const CU2_SHOWCCLPAY = 16
 
const CU2_PROCRECUR = 32
 
const CU2_ALLOWMESSAGE = 64
 
const CU2_SORTORDER6 = 128
 
const CU2_SHOWTXDEST = 256
 
const CU2_SHOWHOLD = 512
 
const CU2_SHOWCCSB = 1024
 
const CU2_USEONLDEP = 2048
 
const CU2_CC18NOINFO = 4096
 
const CU2_CC18SHOWZERO = 8192
 
const CU2_HIDE_PASTDUE = 16384
 
const CU2_OFX_MEMACCTID = 32768
 
const CU2_OFX_PASSLOAN = 65536
 
const CU2_10DAYPAY = 131072
 
const CU2_HIDE_CCAVAIL = 262144
 
const CU2_CALL_CCAVAIL = 524288
 
const CU2_SHOWBANNER = 1048576
 
const CU2_ESCHEMA = 2097152
 
const CU2_SHOW_LN_ESCROW = 4194304
 
const CU2_SHOW_LN_FEE = 8388608
 
const CU2_FRAMEFREE = 16777216
 
const CU2_ALLOW_MBR_ALERTS = 33554432
 
const CU2_ALIAS_REQ = 67108864
 
const CU2_SHOWPEND = 134217728
 
const CU2_LNSORT3 = 268435456
 
const CU2_RANDOM_CHAL = 536870912
 
const CU2_ALIAS_OK = 1073741824
 
const CU3_ESTMNT_SIGNUP = 1
 
const CU3_ESTMNT_CORE = 2
 
const CU3_SHOW_ENROLL = 4
 
const CU3_ENROLL_MIR = 8
 
const CU3_MFA_AUTHCODE = 16
 
const CU3_PREPEND_MBR_DESC = 32
 
const CU3_MASK_MBR_DESC = 64
 
const CU3_API_PLUS = 128
 
const CU3_API_XAC = 256
 
const CU3_LONGCODE_MFA = 512
 
const CU3_SORTKEY_MICR = 1024
 
const CU3_QBDOWN = 2048
 
const CU3_ENROLL_PIN = 4096
 
const CU3_DISALLOW_MULTIPLE_ACCOUNTS = 8192
 
const CU3_DISALLOW_MULT_ACCOUNTS_TRANSFER = 16384
 
const CU3_CREATE_ACCESS_CONTROL_FROM_XAC = 32768
 
const CU3_ALLOW_LEAD_ZEROS = 65536
 
const CU3_ALLOW_COOKIE_MIGRATION = 131072
 
const TABLE_NAME = 'cuadmin'
 
 $admininfo = []
 

Private Member Functions

 Load ()
 

Private Attributes

 $creditUnion
 
 $cuAdminRepo
 

Detailed Description

PHP CuAdmin Class

Handles CU properties

Definition at line 7 of file CuAdmin.php.

Constructor & Destructor Documentation

◆ __construct()

CuAdmin::__construct ( string  $creditUnion,
CuAdminRepo  $cuAdminRepo 
)

CuAdmin constructor.

Parameters
string$creditUnion
Exceptions
Exception

Definition at line 106 of file CuAdmin.php.

106  {
107 
108  //make sure a valid CU was supplied
109  if ($creditUnion == NULL) {
110  throw new Exception(static::class . ": 01 - Invalid credit union {$this->creditUnion}.");
111  }
112 
113  if (!$cuAdminRepo instanceof CuAdminRepo) {
114  throw new Exception(static::class . ": need instance of CuAdminRepo");
115  }
116 
117  $this->creditUnion = $creditUnion;
118  $this->cuAdminRepo = $cuAdminRepo;
119  $this->Load();
120 
121  }
Load()
Definition: CuAdmin.php:128

Member Function Documentation

◆ Load()

CuAdmin::Load ( )
private

Load the user model with data

Exceptions
Exception

Definition at line 128 of file CuAdmin.php.

128  {
129 
130  $this->admininfo = $this->cuAdminRepo->Read($this->creditUnion);
131 
132  if (!$this->admininfo) {
133  throw new Exception(static::class . ": 02 - Invalid credit union {$this->creditUnion}.");
134  }
135 
136  }

The documentation for this class was generated from the following file: