[ACLbit] element index

All elements
a b c d e f g i m n o p r s u _
_
top
__construct
Constructor.
__construct
Constructor connects to database and inititalizes the database structure.
a
top
aclbit.php
aclbit.php in aclbit.php
ACLDatabase
ACLDatabase in aclbit.php
ACLDatabase class manages the ACLbit backup database. It uses SQLite3 database to save and query ACLs.
ACLIdMapper
ACLIdMapper in aclbit.php
This class provides mapping between user names and user ids, group names and group ids, groups and its members.
ACLManager
ACLManager in aclbit.php
This is the main application class. It handles command-line options, input and output. It communicates with ACLDatabase to save or retrieve ACLs to/from the backup database and with ACLIdMapper to get information about users and groups.
b
top
BACKUP_BLOCK_SIZE
Number of entries that make up a block. When in-memory table contains BACKUP_BLOCK_SIZE entries, it is copied to the disk.
c
top
callback_profilerMeasuersCmp
Profiler callback used to sort an array of profiler's measurements.
checkOptions
Validates options.
create
ACLDatabase::create() in aclbit.php
Initializes the database structure.
d
top
debug
debug() in aclbit.php
Debugs $var and optional message to stderr, only if GLOBALS[debug] is on.
disable
Profiler::disable() in aclbit.php
Disables profiler.
doGetopt
Getopt::doGetopt() in aclbit.php
The actual implementation of the argument parsing code.
dumpNextEntry
Returns the next entry from the set of all entries stored for path and for its subtree, eventually.
e
top
$errorMsg
Getopt::$errorMsg in aclbit.php
Getopt error message;
enable
Profiler::enable() in aclbit.php
Enables profiler.
f
top
fail
fail() in aclbit.php
Stops script execution immediately, prints error message. If debug mode is on, prints call stack.
formatTime
Formats time for output.
FULL_MASK
ACLManager::FULL_MASK in aclbit.php
Full mask rights (int).
g
top
getEntries
Return number of entries modified.
Getopt
Getopt in aclbit.php
Command-line options parsing class. This class is a derivate of PEAR Console_Getopt class with PEAR dependance removed for easier installation.
getopts
Getopt::getopts() in aclbit.php
This function expects $args to start with the script name (POSIX-style).
getRoots
Returns all backed up roots.
groupId
Returns group id.
groupName
Returns group name.
i
top
isError
Getopt::isError() in aclbit.php
Checks if the returned result of a function is an error. True if argument is === FALSE.
m
top
microtime
Profiler::microtime() in aclbit.php
Returns current times as float.
n
top
NON_RECURSIVE
Constant to call ACLDatabase::dumpNextEntry() with.
o
top
OPT_CONFIG
$this->options key for path to configuration file.
OPT_DB
ACLManager::OPT_DB in aclbit.php
$this->options key for path to SQLite db.
OPT_FILES
ACLManager::OPT_FILES in aclbit.php
$this->options key for files flag. When the flag is on, files' ACLs are backed up as well.
OPT_GROUP
ACLManager::OPT_GROUP in aclbit.php
$this->options key for group name or id to search for.
OPT_PATH
ACLManager::OPT_PATH in aclbit.php
$this->options key for path to retrieve ACL entry for.
OPT_RECURSIVE
$this->options key for recursive flag.
OPT_ROOT
ACLManager::OPT_ROOT in aclbit.php
$this->options key for absolute path to the backup root.
OPT_SELF_CMD
$this->options key for absolute path to this program.
OPT_STDIN
ACLManager::OPT_STDIN in aclbit.php
$this->options key for input from stdin.
OPT_USER
ACLManager::OPT_USER in aclbit.php
$this->options key for user name or id to search for.
p
top
printMeasure
Outputs results for item $id.
Profiler
Profiler in aclbit.php
This class allows for intelligent profling.
r
top
readPHPArgv
Getopt::readPHPArgv() in aclbit.php
Safely read the $argv PHP array across different PHP configurations.
RECURSIVE
Constant to call ACLDatabase::dumpNextEntry() with.
removeRoot
Removes root and associated ACL entries from database.
resetRoot
Resets database for the backup root given. Deletes old entries and makes sure the backup root is in the root table.
results
Profiler::results() in aclbit.php
Prints profiler results.
rootAncestorPath
Returns ancestor or equal path of the specified path that is already stored in database, or false.
rootDescendantPath
Returns descendant or equal path of the specified root that is already stored in database.
run
ACLManager::run() in aclbit.php
Runs ACL manager, i.e. the selected action.
s
top
save
ACLDatabase::save() in aclbit.php
Stores a complete ACL entry.
saveCompleted
Actions to take after all entries are saved during backup.
searchGroupNextRecord
Returns rights records for the given group.
searchUserNextRecord
Returns next record with effective rights for the user and (its) groups. Skips redundant rights records, i.e. records with rights that are the same as rights in parent folder.
setAction
Sets an action.
setOption
Sets an option value.
setOptionsFromArray
Remembers command line options in $this->options.
setOptionsFromConfigFile
Gets configuration options from a configuration file (ini structure).
start
Profiler::start() in aclbit.php
Starts stopwatch for item $id.
stop
Profiler::stop() in aclbit.php
Stops stopwatch for item $id.
u
top
userGroups
Returns user groups.
userId
ACLIdMapper::userId() in aclbit.php
Returns user id.
userName
Returns user name.
a b c d e f g i m n o p r s u _