Skip to content
Permalink
Browse files

Refactor model for xPDO 3.x and PSR-4 autoloading

Merge branch 'psr4' into 3.x

* psr4: (100 commits)
  Convert sqlsrv model
  Fix schema-defined criteria missing from model maps
  Begin work on making upgrades from 2.x functional
  Fix only variables can be passed by reference error in modHashing
  Fix default database values containing backslashes (class defs)
  Regenerate model with properly escaped default values
  Remove old upgrade scripts and only allow upgrades from 2.6+
  Add missing platform-specific methods and fix others
  Fix some actions and a stupid boolean bug in System/Settings/Update
  Replace more legacy class references
  Import undefined classes
  Import modManagerController
  Load the modManagerController to fix errors in the manager when viewing workspaces for "namespaces"
  Renamed the "workspace/namespace" actions to fix issues after the renamed processors
  Get system controllers functional
  Get elements edit view functional
  Get resource edit view functional
  Initial manager view functional
  Get past login and loading manager
  Fix call to legacy processor in Welcome controller
  ...
  • Loading branch information...
opengeek committed Jun 25, 2019
2 parents f711206 + afa0d5e commit 26430024e33db91b599e57a5b9c530b19cd6be31
Showing 2,059 changed files with 103,843 additions and 106,099 deletions.

Large diffs are not rendered by default.

@@ -5,41 +5,43 @@
* @var modX|xPDO $xpdo
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'save',
'description' => 'perm.save_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'remove',
'description' => 'perm.remove_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view_unpublished',
'description' => 'perm.view_unpublished_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'copy',
'description' => 'perm.copy_desc',
'value' => true,
));
return $permissions;
return $permissions;
@@ -4,51 +4,53 @@
*
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'add_children',
'description' => 'perm.add_children_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'create',
'description' => 'perm.create_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'copy',
'description' => 'perm.copy_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'delete',
'description' => 'perm.delete_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'remove',
'description' => 'perm.remove_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'save',
'description' => 'perm.save_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
return $permissions;
return $permissions;
@@ -4,41 +4,43 @@
*
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'create',
'description' => 'perm.create_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'copy',
'description' => 'perm.copy_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'remove',
'description' => 'perm.remove_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'save',
'description' => 'perm.save_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
return $permissions;
return $permissions;
@@ -4,21 +4,23 @@
*
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
return $permissions;
return $permissions;
@@ -4,31 +4,33 @@
*
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'save',
'description' => 'perm.save_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'remove',
'description' => 'perm.remove_desc',
'value' => true,
));
return $permissions;
return $permissions;
@@ -4,76 +4,78 @@
*
* @package modx
*/
use MODX\Revolution\modAccessPermission;
$permissions = array();
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'add_children',
'description' => 'perm.add_children_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'copy',
'description' => 'perm.copy_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'create',
'description' => 'perm.create_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'delete',
'description' => 'perm.delete_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'list',
'description' => 'perm.list_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'load',
'description' => 'perm.load_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'move',
'description' => 'perm.move_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'publish',
'description' => 'perm.publish_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'remove',
'description' => 'perm.remove_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'save',
'description' => 'perm.save_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'steal_lock',
'description' => 'perm.steal_lock_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'undelete',
'description' => 'perm.undelete_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'unpublish',
'description' => 'perm.unpublish_desc',
'value' => true,
));
$permissions[] = $xpdo->newObject('modAccessPermission',array(
$permissions[] = $xpdo->newObject(modAccessPermission::class,array(
'name' => 'view',
'description' => 'perm.view_desc',
'value' => true,
));
return $permissions;
return $permissions;

0 comments on commit 2643002

Please sign in to comment.
You can’t perform that action at this time.