Alternc
3.2
Alternc logiel libre pour l'hébergement
|
This class manage actions to be performed on the file system on behalf of alternc Classes It primary use is to store the actions to be performed ( creating file or folder, deleting, setting permissions etc..) in the action sql table. More...
Public Member Functions | |
m_action () | |
Constructor. | |
do_action () | |
Plans the cration of a file. | |
create_file ($file, $content="", $user="root") | |
Plans a file creation. | |
create_dir ($dir, $user="root") | |
Plans the cration of a dir. | |
fix_user ($uid, $user="root") | |
Plans a perms fix upon user creation. | |
fix_dir ($dir, $user="root") | |
Plans a dir fix. | |
fix_file ($file, $user="root") | |
Plans a file fix. | |
del ($dir, $user="root") | |
function to delete file / folder | |
move ($src, $dst, $user="root") | |
function returning the first not locked line of the action table | |
archive ($archive, $dir="html") | |
function archiving a directory ( upon account deletion ) | |
set ($type, $user, $parameters) | |
function inserting the action in the sql table | |
get_old ($all=null) | |
This seems to be unused ? | |
purge ($all=null) | |
type $err type $db | |
get_action () | |
function returning the first not locked line of the action table | |
begin ($id) | |
function locking an entry while it is being executed by the action script | |
finish ($id, $return=0) | |
function locking an entry while it is being executed by the action script | |
reset_job ($id) | |
type $db type $err | |
get_job () | |
Returns a list of actions marked as executable and ready for execution. | |
cancel ($id) | |
function locking an entry while it is being executed by the action script |
This class manage actions to be performed on the file system on behalf of alternc Classes It primary use is to store the actions to be performed ( creating file or folder, deleting, setting permissions etc..) in the action sql table.
The script /usr/lib/alternc/do_actions.php handled by cron and incron is then used to perform those actions.
Copyleft AlternC Team
Definition at line 33 of file m_action.php.
archive | ( | $archive, | |
$dir = "html" |
|||
) |
function archiving a directory ( upon account deletion )
type $cuid type $db type $err
type | $archive | Directory to archive within the archive_del_data folder if set in variable sql table If archive_del_data is not set we delete the folder |
type | $dir | sub_directory of the archive directory |
Definition at line 148 of file m_action.php.
References $cuid, $db, $err, del(), move(), and variable_get().
begin | ( | $id | ) |
function locking an entry while it is being executed by the action script
type $db type $err
type | $id |
Definition at line 291 of file m_action.php.
cancel | ( | $id | ) |
create_dir | ( | $dir, | |
$user = "root" |
|||
) |
Plans the cration of a dir.
string | $dir | |
int | $user |
Definition at line 77 of file m_action.php.
References $user.
create_file | ( | $file, | |
$content = "" , |
|||
$user = "root" |
|||
) |
del | ( | $dir, | |
$user = "root" |
|||
) |
function to delete file / folder
type | $dir | |
type | $user |
Definition at line 120 of file m_action.php.
References $user.
Referenced by archive().
do_action | ( | ) |
Plans the cration of a file.
type $err type $L_INOTIFY_DO_ACTION
Definition at line 49 of file m_action.php.
References $err.
Referenced by set().
finish | ( | $id, | |
$return = 0 |
|||
) |
function locking an entry while it is being executed by the action script
type $db type $err
type | $id | |
type | $return |
Definition at line 309 of file m_action.php.
Referenced by cancel().
fix_dir | ( | $dir, | |
$user = "root" |
|||
) |
Plans a dir fix.
type | $dir | |
type | $user |
Definition at line 98 of file m_action.php.
References $user.
fix_file | ( | $file, | |
$user = "root" |
|||
) |
Plans a file fix.
type | $file | |
type | $user |
Definition at line 109 of file m_action.php.
References $user.
fix_user | ( | $uid, | |
$user = "root" |
|||
) |
get_action | ( | ) |
function returning the first not locked line of the action table
type $db type $err
Definition at line 270 of file m_action.php.
get_job | ( | ) |
Returns a list of actions marked as executable and ready for execution.
type $db type $err
Definition at line 341 of file m_action.php.
get_old | ( | $all = null | ) |
This seems to be unused ?
type $err type $db
type | $all |
Definition at line 228 of file m_action.php.
m_action | ( | ) |
move | ( | $src, | |
$dst, | |||
$user = "root" |
|||
) |
function returning the first not locked line of the action table
type | $src | |
type | $dst | |
type | $user |
Definition at line 132 of file m_action.php.
References $user.
Referenced by archive().
purge | ( | $all = null | ) |
type $err type $db
type | $all |
Definition at line 247 of file m_action.php.
reset_job | ( | $id | ) |
set | ( | $type, | |
$user, | |||
$parameters | |||
) |
function inserting the action in the sql table
type $db type $err
type | $type | |
type | $user | |
type | $parameters |
Definition at line 182 of file m_action.php.
References $db, $err, $parameters, $query, and do_action().