2012-03-15 15:06:45 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Application model for Cake.
|
|
|
|
*
|
|
|
|
* This file is application-wide model file. You can put all
|
|
|
|
* application-wide model-related methods here.
|
|
|
|
*
|
|
|
|
* PHP 5
|
|
|
|
*
|
|
|
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
2012-09-25 15:41:58 +02:00
|
|
|
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-03-15 15:06:45 +01:00
|
|
|
*
|
|
|
|
* Licensed under The MIT License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2012-09-25 15:41:58 +02:00
|
|
|
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2012-03-15 15:06:45 +01:00
|
|
|
* @link http://cakephp.org CakePHP(tm) Project
|
|
|
|
* @package app.Model
|
|
|
|
* @since CakePHP(tm) v 0.2.9
|
|
|
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
|
|
|
*/
|
|
|
|
|
|
|
|
App::uses('Model', 'Model');
|
2012-09-20 11:34:41 +02:00
|
|
|
App::uses('LogableBehavior', 'Assets.models/behaviors');
|
2012-03-15 15:06:45 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Application model for Cake.
|
|
|
|
*
|
|
|
|
* Add your application-wide methods in the class below, your models
|
|
|
|
* will inherit them.
|
|
|
|
*
|
|
|
|
* @package app.Model
|
|
|
|
*/
|
|
|
|
class AppModel extends Model {
|
2012-12-18 04:50:52 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Model Name
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $name;
|
|
|
|
|
|
|
|
public function __construct($id = false, $table = null, $ds = null) {
|
|
|
|
parent::__construct($id, $table, $ds);
|
|
|
|
|
|
|
|
$this->name = get_class($this);
|
|
|
|
}
|
2012-03-15 15:06:45 +01:00
|
|
|
}
|