. */ /** * The MySQL type, representing the base of an object in MySQL */ require_once(FILESYSTEMROOTPATH."include/classes/IModel.php"); abstract class AbstractMySQL implements IModel { /** Id */ private $id; /** * Constructor, should only be used to load the data from MySQL into the object * * @param array $data Array of values to be stored, in MySQL format (only single entry) */ public function __construct($data) { if( is_array($data) ) { $this->id = $data['id']; }else { $this->id = NULL; } } public function getId() { return $this->id; } }