AR/aclGetName
Jump to navigation
Jump to search
تقوم بجلب الإسم الخاص بالأسل .
تركيب الوظيفة :
string aclGetName ( acl theAcl )
العناصر المطلوب :
- theACL: الأسل المطلوب جلب الإسم الخاص به
المعطليات :
إذا كان الأسل غير موجود أو أحد العناصر المطلوبة خاطئة false \ nil تقوم بإرجاع إسم الإسل , و تقوم بإرجاع قيمة
أمثلة :
This example adds a command listacls which prints out a name list of all ACLs to the console.
function printOutAllACLs ( thePlayer )
-- get a table over all the ACLs
local allACLs = aclList()
-- if the table is empty (there are no ACLs)
if #allACLs == 0 then
-- print out a message to console and exit function
return outputConsole ( "There are no ACLs!", thePlayer )
else
-- print out a list of the names
outputConsole ( "List of all ACLs:", thePlayer )
for key, singleACL in ipairs ( allACLs ) do
local ACLName = aclGetName ( singleACL )
outputConsole ( "- " .. tostring ( ACLName ), thePlayer )
end
end
end
addCommandHandler ( "listacls", printOutAllACLs )
تمت إعادة الترجمة و الإضافة من قبل : ^iiEcoo'x_)
See Also
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupList
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo