First release of domframework

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1207 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-02-27 08:47:54 +00:00
commit 96cf1c4010
26 changed files with 2125 additions and 0 deletions

64
authorization.php Normal file
View File

@@ -0,0 +1,64 @@
<?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)
{
}
}