[eluser]Mutsop[/eluser]
Hi,
I don't know how many of you know Eve-Online (a game), so I will explain you as clearly as possible
So I'm using a php library of someone which calls upon xml files (receive information of your ingame character using the API of Eve-Online) and translates them. I was able to get it to work in the plugin folder... JOY
But now, for the long term I though of using CI_models to actually simplify the way I could retrieve information upon my character ingame.
Now, The API of the game has two variations: A LIMITED key and a FULL key. The limited key will provide an error when trying to access information only the FULL key can access.
So how would I code that into my models? fyi there are around 30 functions I should do (45% limited- 45%full -10%nokey needed). The users should register their keys and id when they sign up.
Now this is the model code (simplified) for the information access. The information about a character (limited key) can be seen by anyone. So i thought of using (doctrine -> FindByUsername and call upon the apikey and id)
Code:
<?php
class Api_call extends Model {
var $api = "";
function Api_call()
{
parent::Model();
}
//Account
//Character List (on account) /account/Characters.xml.aspx Limited Short
function characters() {
}
//Account Status /account/AccountStatus.xml.aspx Full Short
function accountStatus() {
}