-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from ravage84/2.x-codestyle
Codestyle improvements
- Loading branch information
Showing
7 changed files
with
1,049 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,70 @@ | ||
<?php | ||
/* generated on: 2012-02-21 14:38:35 : 1329856715 */ | ||
<?php | ||
|
||
/** | ||
* AuditLog Schema | ||
*/ | ||
class AuditLogSchema extends CakeSchema { | ||
|
||
/** | ||
* Name | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $name = 'AuditLog'; | ||
/** | ||
* AuditLog | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $name = 'AuditLog'; | ||
|
||
/** | ||
* Before callback | ||
* | ||
* @param array $event The event data. | ||
* @return bool | ||
*/ | ||
public function before($event = array()) { | ||
return true; | ||
} | ||
|
||
/** | ||
* After callback | ||
* | ||
* @param array $event The event data. | ||
* @return bool | ||
*/ | ||
public function after($event = array()) { | ||
return true; | ||
} | ||
|
||
/** | ||
* Before callback | ||
* | ||
* @param string Event | ||
* @return boolean | ||
* @access public | ||
*/ | ||
public function before($event = array()) { | ||
return true; | ||
} | ||
/** | ||
* Schema for audit_deltas table | ||
* | ||
* @var array | ||
*/ | ||
public $audit_deltas = array( | ||
'id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'audit_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'property_name' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'old_value' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'new_value' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'audit_id' => array('column' => 'audit_id', 'unique' => 0)), | ||
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB') | ||
); | ||
|
||
/** | ||
* After callback | ||
* | ||
* @param string Event | ||
* @return boolean | ||
* @access public | ||
*/ | ||
public function after($event = array()) { | ||
return true; | ||
} | ||
|
||
/** | ||
* Schema for audit_deltas table | ||
* | ||
* @var array | ||
* @access public | ||
*/ | ||
public $audit_deltas = array( | ||
'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'audit_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'index', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'property_name' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'old_value' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'new_value' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'audit_id' => array('column' => 'audit_id', 'unique' => 0)), | ||
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB') | ||
); | ||
|
||
/** | ||
* Schema for audits table | ||
* | ||
* @var array | ||
* @access public | ||
*/ | ||
public $audits = array( | ||
'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'event' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'model' => array('type' => 'string', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'entity_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'request_id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'json_object' => array('type' => 'text', 'null' => false, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'description' => array('type' => 'text', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'source_id' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL, 'collate' => NULL, 'comment' => ''), | ||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)), | ||
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB') | ||
); | ||
/** | ||
* Schema for audits table | ||
* | ||
* @var array | ||
*/ | ||
public $audits = array( | ||
'id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'event' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'model' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'entity_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'request_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'json_object' => array('type' => 'text', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'description' => array('type' => 'text', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'source_id' => array('type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'), | ||
'created' => array('type' => 'datetime', 'null' => false, 'default' => null, 'collate' => null, 'comment' => ''), | ||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)), | ||
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB') | ||
); | ||
|
||
} |
Oops, something went wrong.