Dear all ,
i am trying the following :
i have a class named ACCOUNT with many properties in .some of these properties are array , it is like this :
class ACCOUNT
{
PRIVATE $DB_LINK;
PRIVATE $COMP;
PRIVATE $BRANCH;
PRIVATE $CURRENCY;
PRIVATE $GL;
PRIVATE $CIF;
PRIVATE $SL;
PRIVATE $EXIST;
PRIVATE $STATUS;
private $ACCOUNT_NAME=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>'');
private $ACCOUNT_BALANCE =ARRAY('FC_YTD','CV_YTD','CV_BAL','YTD_BAL','BLOCKED_CV','BLOCKED_FC');
private $CY_NAME=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>'');
private $ACCOUNT_NAME_USR=ARRAY("LA"=>'',"LE"=>'',"SA"=>'',"SE"=>'');
private $LEDGER_NAME= ARRAY("LA"=>'',"LE"=>'');
i have created the following method to call any property
[code] FUNCTION GET_SPECIFEC_ATT($ATT,$LANG)
{
$ATT=$ATT."['L$LANG']";
ECHO $this->$ATT;
}
but i am getting the below error :
Notice: Undefined property: ACCOUNT::$BRANCH_NAME['LA'] in D:\wamp\www\EBANK\account.class on line 186
if i used this :
echo $this->BRANCH_NAME['LA'];
it is working fine .
and the method is working fine i can iam trying to call property which is NOT an array.
Can you please help me in what iam doing wrong ?
Thanks in advance