Returns

Tags

None found

delete_parameter()

delete_parameter(string $domain, string $name) : boolean

Delete a parameter.

Current implementation note: Deletion is not yet implemented in MgdSchema.
Therefore we set the parameters to an empty string for now, which should
have almost the same effect for most cases and thus is good enough for now.
Note, that empty string parameters are filtered in the getter methods until
this matter is resolved.

The user needs both update and parameter manipulation permission on the parent object for updates.

You can either pass a ready made privilege record or a privilege/assignee/value
combination suitable for usage with create_new_privilege_object() (see there).

Parameters

mixed

$privilege

Either the full privilege object (midcom_core_privilege) to set or the name of the privilege (string).
If the name was specified, the other parameters must be specified as well.

mixed

$assignee

A valid assignee suitable for midcom_core_privilege::set_privilege(). This defaults to the currently
active user if authenticated or to 'EVERYONE' otherwise (invalid if $privilege is a midcom_core_privilege).

integer

$value

The privilege value, this defaults to MIDCOM_PRIVILEGE_ALLOW (invalid if $privilege is a midcom_core_privilege).

string

$classname

An optional class name to which a SELF privilege gets restricted to. Only valid for SELF privileges
(invalid if $privilege is a midcom_core_privilege).

Tags

unset_privilege()

Parameters

Either the full privilege object (midcom_core_privilege) to set or the name of the privilege (string).
If the name was specified, the other parameters must be specified as well.

mixed

$assignee

A valid assignee suitable for midcom_core_privilege::set_privilege(). This defaults to the currently
active user if authenticated or to 'EVERYONE' otherwise (invalid if $privilege is a midcom_core_privilege).

string

$classname

An optional class name to which a SELF privilege gets restricted to. Only valid for SELF privileges
(invalid if $privilege is a midcom_core_privilege).