I want to pull values from the DB and insert them into variables in a class.
IS the best and ideal way to just create a DB class and then reference that class within the main class to set the protected values to the values from the DB?
if(!empty($S)){
$_client_id=$S['API_ID'];
$_client_secret=$S['API_PASSWORD'];
$_client_id=$S['API_SECRET'];
$_access_token=$S['API_TOKEN'];
$_username=$S['API_USER'];
}
class MyClass
{
protected $_client_id = '20123123';
protected $_client_secret = '76fesresg45grgerg3g34';
protected $_username = 'letsHe'