implemented buildURL() function (and fixed redirecting on https page)

added comments block (file description) in each PHP file
This commit is contained in:
2015-02-15 14:33:02 +01:00
parent 79034dd314
commit a542813c8f
21 changed files with 234 additions and 130 deletions

View File

@@ -1,4 +1,13 @@
<?php
/**
* @package uForum2
* @file inc/askModel.class.php
* @copyright 2007-2015 (c) PioDer <piotrek@pioder.pl>
* @link http://www.pioder.pl/
* @license see LICENSE.txt
**/
require_once('./inc/model.class.php');
abstract class AskModel
{
@@ -6,7 +15,7 @@ abstract class AskModel
function loadModel($model)
{
if (file_exists('./inc/models/'.$model.'.class.php') && !array_key_exists($model, $this->models)) //realizowany singleton
if (file_exists('./inc/models/'.$model.'.class.php') && !array_key_exists($model, $this->models)) //singleton
{
require_once('./inc/models/'.$model.'.class.php');
$this->models[$model] = new $model($this->db);
@@ -30,5 +39,4 @@ abstract class AskModel
$this->models[$model] = $model_ptr;
}
}
?>