Removed commented code from the Model and added a note about how experimental and unusable the Mongo class is.
This commit is contained in:
parent
3e7ece8cce
commit
42c3ec993b
2 changed files with 2 additions and 20 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
/**
|
||||
* Mongo Database Abstraction Layer
|
||||
*
|
||||
* This database class is still considered incomplete and very experimental.
|
||||
*/
|
||||
class Database_Mongo extends Database_Common
|
||||
{
|
||||
|
|
|
@ -302,26 +302,6 @@ class Model extends Object
|
|||
else
|
||||
{
|
||||
throw new Exception('Sorry, Mongo support in the PICKLES Model is not quite ready yet');
|
||||
|
||||
/*
|
||||
switch ($type_or_parameters)
|
||||
{
|
||||
case 'count':
|
||||
break;
|
||||
|
||||
case 'list':
|
||||
break;
|
||||
|
||||
case 'all':
|
||||
$this->db->fetch($this->table, $this->input_parameters);
|
||||
break;
|
||||
|
||||
// Throws an error
|
||||
default:
|
||||
throw new Exception('Unknown query type');
|
||||
break;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
$list_type = ($type_or_parameters == 'list');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue