public function createClasses() { include_once 'OTPServer.php'; include_once 'client_data/ClientEntity.php'; include_once 'client_data/OTPClient.php'; $a_Data = array(); $o_Server = new OTPServer('config.xml'); $o_Config = simplexml_load_file($o_Server->createClient()); $o_ClientEntity = new ClientEntity((string) $o_Config->db_path, (string) $o_Config->id, (string) $o_Config->db_key); $o_DB = new PDO('sqlite:' . $o_Config->db_path); $a_Data[] = array($o_Config, $o_ClientEntity, $o_DB); return $a_Data; }
public function createClasses() { include_once 'OTPServer.php'; include_once 'client_data/ClientEntity.php'; include_once 'client_data/OTPClient.php'; $o_Server = new OTPServer('config.xml'); $a_Data = array(); $o_Client = new OTPClient($o_Server->createClient()); $a_Data[] = array($o_Server, $o_Client); return $a_Data; }