diff --git a/core/block.class.php b/core/block.class.php index 737841e5..f672df9f 100644 --- a/core/block.class.php +++ b/core/block.class.php @@ -1,4 +1,14 @@ header = "Navigation"; diff --git a/core/config.class.php b/core/config.class.php index 8ff8f3ef..218c6c2b 100644 --- a/core/config.class.php +++ b/core/config.class.php @@ -1,12 +1,23 @@ database = $database; $this->values = $this->database->db->GetAssoc("SELECT name, value FROM config"); } + + /* + * Save the current values as the new config table + */ public function save($name=null) { if(is_null($name)) { foreach($this->values as $name => $value) { diff --git a/core/database.class.php b/core/database.class.php index 0696f10b..845b07ba 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -2,7 +2,10 @@ $ADODB_CACHE_DIR="./data"; require_once "lib/adodb/adodb.inc.php"; -class Querylet { // {{{ +/* Querylet {{{ + * A fragment of a query, used to build large search queries + */ +class Querylet { var $sql; var $variables; @@ -25,6 +28,9 @@ class Querylet { // {{{ } } // }}} +/* + * A class for controlled database access, available through "global $database" + */ class Database { var $db; var $extensions; diff --git a/core/extension.class.php b/core/extension.class.php index be7d23c2..1ee2a79f 100644 --- a/core/extension.class.php +++ b/core/extension.class.php @@ -1,4 +1,7 @@ create_from_row($a); - } - } - - private function create_from_row($row) { - foreach($row as $name => $value) { - $this->$name = $value; // hax + public function Image($row=null) { + if(!is_null($row)) { + foreach($row as $name => $value) { + $this->$name = $value; // hax + } } } diff --git a/core/user.class.php b/core/user.class.php index 0241050f..0174b2d4 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -1,4 +1,7 @@