mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Updating help text on ACL script
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5036 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7f32528dfa
commit
ca92008260
1 changed files with 17 additions and 18 deletions
|
@ -306,48 +306,47 @@ class AclScript extends CakeScript {
|
|||
$out .= "-----------------------------------------------\n";
|
||||
$out .= "Commands:\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tcreate aro|aco <link_id> <parent_id> <alias>\n";
|
||||
$out .= "\t\tCreates a new ACL object under the parent specified by <parent_id>, an id/alias (see\n";
|
||||
$out .= "\t\t'view'). The link_id allows you to link a user object to Cake's\n";
|
||||
$out .= "\t\tACL structures. The alias parameter allows you to address your object\n";
|
||||
$out .= "\t\tusing a non-integer ID. Example: \"\$cake acl create aro 57 0 John\"\n";
|
||||
$out .= "\t\twould create a new ARO object at the root of the tree, linked to 57\n";
|
||||
$out .= "\t\tin your users table, with an internal alias 'John'.";
|
||||
$out .= "\tcreate aro|aco <parent> <node>\n";
|
||||
$out .= "\t\tCreates a new ACL object <node> under the parent specified by <parent>, an id/alias.\n";
|
||||
$out .= "\t\tThe <parent> and <node> references can be in one of the following formats:\n";
|
||||
$out .= "\t\t\t- <model>.<id> - The node will be bound to a specific record of the given model\n";
|
||||
$out .= "\t\t\t- <alias> - The node will be given a string alias (or path, in the case of <parent>),\n";
|
||||
$out .= "\t\t\t i.e. 'John'. When used with <parent>, this takes the form of an alias path,\n";
|
||||
$out .= "\t\t\t i.e. <group>/<subgroup>/<parent>.\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tdelete aro|aco <id>\n";
|
||||
$out .= "\t\tDeletes the ACL object with the specified ID (see 'view').\n";
|
||||
$out .= "\tdelete aro|aco <node>\n";
|
||||
$out .= "\t\tDeletes the ACL object with the given <node> reference (see 'create' for info on node references).\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tsetParent aro|aco <id> <parent_id>\n";
|
||||
$out .= "\t\tUsed to set the parent of the ACL object specified by <id> to the ID\n";
|
||||
$out .= "\t\tspecified by <parent_id>.\n";
|
||||
$out .= "\tsetParent aro|aco <node> <parent>\n";
|
||||
$out .= "\t\tMoves the ACL object specified by <node> beneath the parent ACL object specified by <parent>.\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tgetPath aro|aco <id>\n";
|
||||
$out .= "\t\tReturns the path to the ACL object specified by <id>. This command is\n";
|
||||
$out .= "\tgetPath aro|aco <node>\n";
|
||||
$out .= "\t\tReturns the path to the ACL object specified by <node>. This command is\n";
|
||||
$out .= "\t\tis useful in determining the inhertiance of permissions for a certain\n";
|
||||
$out .= "\t\tobject in the tree.\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tgrant <aro_id> <aco_id> <aco_action>\n";
|
||||
$out .= "\tgrant <aro_id> <aco_id> [<aco_action>]\n";
|
||||
$out .= "\t\tUse this command to grant ACL permissions. Once executed, the ARO\n";
|
||||
$out .= "\t\tspecified (and its children, if any) will have ALLOW access to the\n";
|
||||
$out .= "\t\tspecified ACO action (and the ACO's children, if any).\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tdeny <aro_id> <aco_id> <aco_action>\n";
|
||||
$out .= "\tdeny <aro_id> <aco_id> [<aco_action>]\n";
|
||||
$out .= "\t\tUse this command to deny ACL permissions. Once executed, the ARO\n";
|
||||
$out .= "\t\tspecified (and its children, if any) will have DENY access to the\n";
|
||||
$out .= "\t\tspecified ACO action (and the ACO's children, if any).\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tinherit <aro_id> <aco_id> <aco_action> \n";
|
||||
$out .= "\tinherit <aro_id> <aco_id> [<aco_action>]\n";
|
||||
$out .= "\t\tUse this command to force a child ARO object to inherit its\n";
|
||||
$out .= "\t\tpermissions settings from its parent.\n";
|
||||
$out .= "\n";
|
||||
$out .= "\n";
|
||||
$out .= "\tview aro|aco [id]\n";
|
||||
$out .= "\tview aro|aco [<node>]\n";
|
||||
$out .= "\t\tThe view command will return the ARO or ACO tree. The optional\n";
|
||||
$out .= "\t\tid/alias parameter allows you to return only a portion of the requested\n";
|
||||
$out .= "\t\ttree.\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue