-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
interface ICache | ||
{ | ||
public function __construct($type); | ||
public function setEntry($key, $expirationDue); | ||
public function getEntry($key, $clear = false); | ||
|
||
public static function generateKey(); | ||
} | ||
?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
interface IDBAdapter | ||
{ | ||
public function connect($server, $userid, $password, array $options); | ||
public function disconnect(); | ||
public function beginTransaction(); | ||
public function endTransaction(); | ||
public function query($query); | ||
} | ||
|
||
?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
interface IModel | ||
{ | ||
static function _createTable(); | ||
static function _dropTable(); | ||
static function _dumpTable(); | ||
|
||
public function setField($fieldName, $value); | ||
public function __set($fieldName, $value); | ||
public function getField($fieldName, $value); | ||
public function __get($fieldName, $value); | ||
|
||
public static function findAll(array $condition); | ||
public static function deleteAll(array $condition); | ||
public static function get($id); | ||
public static function create(array $fields); | ||
|
||
public function save(array $options); | ||
public function delete(); | ||
} | ||
?> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/// Copyright (c) 2004-2008, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) | ||
|
||
// This file is called AT FIRST to parse URL and query strings. | ||
|
||
/* TODO: Load config.php */ | ||
|
||
/* TODO: Unify the URI strings / workaround (IIS, Apache - mod_php or fastcgi, lighttpd, and etc.) */ | ||
|
||
/* TODO: Special pre-handlers (favicon.ico, index.gif) */ | ||
|
||
/* TODO: Load interface */ | ||
|
||
?> |