function __construct() { parent::__construct(); $this->request = file_get_contents('php://input'); if (!empty($this->request)) { $this->request = json_decode($this->request, true); } $this->load->library('form_validation'); }
function __construct($opt = null) { parent::__construct($opt); $this->playlistDb = $opt['PlaylistInfoDB'] ? $opt['PlaylistInfoDB'] : new PlaylistInfoDB(); $this->voiceDb = $opt['VoiceInfoDB'] ? $opt['VoiceInfoDB'] : new VoiceInfoDB(); }
function __construct($userKey, $userSecret) { parent::__construct($userKey, $userSecret); }
public function __construct($request) { parent::__construct($request); $this->db = new Db(); }