This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//First file - has all the database bits in and extends SQLiteOpenHelper | |
public Cursor queryOne(String name) { | |
SQLiteDatabase db = this.getWritableDatabase(); | |
Cursor res = db.rawQuery("SELECT type1, type2 FROM Pokemon WHERE name = ?", | |
new String[]{name}); | |
return res; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title> | |
{site title} | |
</title> | |
<!--<link rel="shortcut icon" href="{pathToApp}/images/fav.ico" />--> | |
<link rel="stylesheet" href="{pathToApp}/views/main.css" type="text/css" media="screen" /> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Registry { | |
/** | |
* @var array The store for all objects | |
*/ | |
static private $store = array(); | |
/** |