mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Included @var in API that was missing.
This commit is contained in:
parent
fedadc091c
commit
2a50a1ea99
10 changed files with 76 additions and 0 deletions
|
@ -8,10 +8,25 @@ App::uses('Folder', 'Utility');
|
|||
*/
|
||||
class UpgradeShell extends Shell {
|
||||
|
||||
/**
|
||||
* Files
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_files = array();
|
||||
|
||||
/**
|
||||
* Paths
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_paths = array();
|
||||
|
||||
/**
|
||||
* Map
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_map = array(
|
||||
'Controller' => 'Controller',
|
||||
'Component' => 'Controller/Component',
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
* @package Cake.Controller
|
||||
*/
|
||||
class CakeErrorController extends AppController {
|
||||
|
||||
/**
|
||||
* Controller name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'CakeError';
|
||||
|
||||
/**
|
||||
|
|
|
@ -148,24 +148,28 @@ class App {
|
|||
/**
|
||||
* Holds the location of each class
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $__classMap = array();
|
||||
|
||||
/**
|
||||
* Holds the possible paths for each package name
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $__packages = array();
|
||||
|
||||
/**
|
||||
* Holds the templates for each customizable package path in the application
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $__packageFormat = array();
|
||||
|
||||
/**
|
||||
* Maps an old style CakePHP class type to the corresponding package
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $legacy = array(
|
||||
'models' => 'Model',
|
||||
|
@ -182,12 +186,14 @@ class App {
|
|||
/**
|
||||
* Indicates whether the class cache should be stored again because of an addition to it
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
private static $_cacheChange = false;
|
||||
|
||||
/**
|
||||
* Indicates whether the object cache should be stored again because of an addition to it
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
private static $_objectCacheChange = false;
|
||||
|
||||
|
@ -195,6 +201,7 @@ class App {
|
|||
* Indicates the the Application is in the bootstrapping process. Used to better cache
|
||||
* loaded classes while the cache libraries have not been yet initialized
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public static $bootstrapping = false;
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ class CakePlugin {
|
|||
/**
|
||||
* Holds a list of all loaded plugins and their configuration
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $_plugins = array();
|
||||
|
||||
|
|
|
@ -505,7 +505,26 @@ class TranslateBehavior extends ModelBehavior {
|
|||
* @package Cake.Model.Behavior
|
||||
*/
|
||||
class I18nModel extends AppModel {
|
||||
|
||||
/**
|
||||
* Model name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $name = 'I18nModel';
|
||||
|
||||
/**
|
||||
* Table name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $useTable = 'i18n';
|
||||
|
||||
/**
|
||||
* Display field
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $displayField = 'field';
|
||||
|
||||
}
|
||||
|
|
|
@ -42,6 +42,8 @@ class DboOracle extends DboSource {
|
|||
|
||||
/**
|
||||
* Sequence names as introspected from the database
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $_sequences = array();
|
||||
|
||||
|
|
|
@ -62,6 +62,11 @@ class Postgres extends DboSource {
|
|||
'encoding' => ''
|
||||
);
|
||||
|
||||
/**
|
||||
* Columns
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $columns = array(
|
||||
'primary_key' => array('name' => 'serial NOT NULL'),
|
||||
'string' => array('name' => 'varchar', 'limit' => '255'),
|
||||
|
|
|
@ -301,10 +301,25 @@ class Model extends Object {
|
|||
*/
|
||||
public $__backAssociation = array();
|
||||
|
||||
/**
|
||||
* Back inner association
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $__backInnerAssociation = array();
|
||||
|
||||
/**
|
||||
* Back original association
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $__backOriginalAssociation = array();
|
||||
|
||||
/**
|
||||
* Back containable association
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $__backContainableAssociation = array();
|
||||
|
||||
/**
|
||||
|
|
|
@ -81,6 +81,11 @@ class Router {
|
|||
const ID = '[0-9]+';
|
||||
const UUID = '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}';
|
||||
|
||||
/**
|
||||
* Named expressions
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $__namedExpressions = array(
|
||||
'Action' => Router::ACTION,
|
||||
'Year' => Router::YEAR,
|
||||
|
|
|
@ -42,6 +42,7 @@ class FormHelper extends AppHelper {
|
|||
* Holds the fields array('field_name' => array('type'=> 'string', 'length'=> 100),
|
||||
* primaryKey and validates array('field_name')
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $fieldset = array();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue