implemented buildURL() function (and fixed redirecting on https page)
added comments block (file description) in each PHP file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user