What are these variables?
Class User
TOTO = 1
TITI = 2
end
User::TOTO # 1
User::TITI # 2
any links to the doc?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
TOTOandTITIare defined as constants with values 1 and 2 respectively within the User class.You can access these constants from within the the user class itself by just referring them as
TOTOandTITIBut if you want to access these constants from outside the user class then you have to use the class name as well which is what you are doing I guess, i.e.
User::TOTOandUser:TITIHere is little tutorial on the constants.