„LnxUser::deleteGroup” változatai közötti eltérés
Innen: IT documentation
Nincs szerkesztési összefoglaló |
|||
| 9. sor: | 9. sor: | ||
== Parameters == | == Parameters == | ||
; | ; group | ||
: Group Name or Group ID or an associative array what contains the parameters of deleting group. | : Group Name or Group ID or an associative array what contains the parameters of deleting group. | ||
:; | : The structure of the the array: | ||
: [ | |||
:; 'name' => string | |||
:: Mantandory! Name of linux group. | :: Mantandory! Name of linux group. | ||
:; | :; 'force' => bool | ||
:: Optional. If ''' | :: Optional. If '''true''' delete group even if it is the primary group of a user | ||
: ] | |||
== Return Values == | == Return Values == | ||
A lap jelenlegi, 2021. szeptember 19., 16:11-kori változata
Description
Object-oriented style
public lnxUser::deleteGroup ( string | int | array $group ): bool
Procedural style
lnxDeleteGroup ( string | int | array $group ): bool
Delete a linux group.
Parameters
- group
- Group Name or Group ID or an associative array what contains the parameters of deleting group.
- The structure of the the array:
- [
- 'name' => string
- Mantandory! Name of linux group.
- 'force' => bool
- Optional. If true delete group even if it is the primary group of a user
- ]
Return Values
Returns true if group is deleted, false otherwise
Changelog
| Version (lnxUser) |
Description |
|---|---|
| 1.00 | available |
Examples
$group = 'testGroup';
# Delete linux group
if ( ! lnxDeleteGroup ( $group ) )
print( "Something went wrong during Delete group!" . PHP_EOL );
else
print( "'$group' group is deleted." . PHP_EOL );