12-23-2008, 02:06 PM
Okay, so I just wanted to tell Jonny (tomorrow is Christmas eve. I won't be here) to add this function to the class. Why? I wanna convert Integer values (1/0) to strings (Yes/no). Just for the ACP Dashboard.
Add it to the class Jonny Add it
PHP Code:
public function cleaninteger($var){ # Transforms an Integer Value (1/0) to a Friendly version (Yes/No)
$patterns[0] = '/0/';
$patterns[1] = '/1/';
$replacements[0] = 'No';
$replacements[1] = 'Yes';
return preg_replace($patterns, $replacements, $var);
}
Add it to the class Jonny Add it