Page 1 of 1

found this statement and I dont know what it means

Posted: Thu May 13, 2010 10:44 am
by raulbolanos
HI guys,

I found this in a code and I dont know what means this code

Config::get

I would like to trace it.. this part return some error message regarding to the parameter and I would like to know where I can find them? Config and Get are reserved words?

Code: Select all

if (ini_get("magic_quotes_gpc") == 1){
	  echo Config::get("errorMagicQuotes");
	  exit;
	}
	if (!function_exists("mcrypt_encrypt")){
	  echo Config::get("errorMCrypt");
	}
Let me know if you need more info.

Thank you in advance.

Re: found this statement and I dont know what it means

Posted: Thu May 13, 2010 10:47 am
by AbraCadaver
It's a static method call. Look in the class Config, and the method get.

Re: found this statement and I dont know what it means

Posted: Thu May 13, 2010 11:21 am
by raulbolanos
Thank you guy, now I have to figure out where is declared this function.

Re: found this statement and I dont know what it means

Posted: Thu May 13, 2010 12:33 pm
by AbraCadaver
raulbolanos wrote:Thank you guy, now I have to figure out where is declared this function.
Is easy on Linux. If on Windows use the search to search all files in your app that contain 'class Config'.