mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 20:48:00 +00:00
added license and readme
This commit is contained in:
46
classes/model.php
Normal file → Executable file
46
classes/model.php
Normal file → Executable file
@@ -1,23 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Model class for all models
|
||||
*
|
||||
* @author Christian
|
||||
*/
|
||||
class Model// extends SQLQuery
|
||||
{
|
||||
protected $_model;
|
||||
|
||||
function __construct($id=0)
|
||||
{
|
||||
$this->_model = substr(get_class($this),0,-5);
|
||||
$this->_table = strtolower($this->_model);
|
||||
$this->_id = $id;
|
||||
}
|
||||
|
||||
function __destruct()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Model class for all models
|
||||
*
|
||||
* @author Christian
|
||||
*/
|
||||
class Model// extends SQLQuery
|
||||
{
|
||||
protected $_model;
|
||||
|
||||
function __construct($id=0)
|
||||
{
|
||||
$this->_model = substr(get_class($this),0,-5);
|
||||
$this->_table = strtolower($this->_model);
|
||||
$this->_id = $id;
|
||||
}
|
||||
|
||||
function __destruct()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user