Files
DomFramework/authorization.php
2014-02-27 08:47:54 +00:00

65 lines
1.5 KiB
PHP

<?php
/** All the needed functions to authorize or deny access to an authenticated
user */
class authorization
{
private $separator = "/";
/** Establish a connexion to the authorization database */
public function connect ()
{
}
/** Return if the user right is NONE, READ, WRITE, EXECUTE
if the object doesn't exists, or is not readable, throw an exception */
public function validate ($object)
{
}
/** Add a new object, with owner and group, and mode bits */
public function add ($object, $owner, $group, $modbits)
{
}
/** Remove the informations about an object */
public function drop ($object)
{
}
/** Change the owner of an object
Need to be the root administrator */
public function chown ($object, $owner)
{
}
/** Change the group of an object
Need to be the owner of the object or the root administrator */
public function chgrp ($object, $group)
{
}
/** Change mode bits for an object
Need to be the owner of the object or the root administrator */
public function chmod ($object, $mod)
{
}
/** Return the mode bits for an object if all his parents are readable for
the user */
public function lsmod ($object)
{
}
/** Return the owner for an object if all his parents are readable for
the user */
public function lsown ($object)
{
}
/** Return the owner for an object if all his parents are readable for
the user */
public function lsgrp ($object)
{
}
}