Add all the phpdocs to the domframework

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-03-24 19:44:34 +00:00
parent 1b52b410c3
commit 350aa1dea8
28 changed files with 472 additions and 148 deletions

View File

@@ -1,8 +1,13 @@
<?php
/** DomFramework
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
/** All the needed functions to authorize or deny access to an authenticated
user */
class authorization
{
/** Separator between differents modules/objects */
private $separator = "/";
/** Establish a connexion to the authorization database */
@@ -11,53 +16,69 @@ class authorization
}
/** Return if the user right is NONE, READ, WRITE, EXECUTE
if the object doesn't exists, or is not readable, throw an exception */
if the object doesn't exists, or is not readable, throw an exception
@param string $object The object path to examine
@return NONE, READ, WRITE, EXECUTE */
public function validate ($object)
{
}
/** Add a new object, with owner and group, and mode bits */
/** Add a new object, with owner and group, and mode bits
@param string $object Object path to add
@param integer $owner Owner ID of the object
@param integer $group Group ID of the object
@param integer $modbits Bits of authorization */
public function add ($object, $owner, $group, $modbits)
{
}
/** Remove the informations about an object */
/** Remove the informations about an object
@param string $object Object path to drop */
public function drop ($object)
{
}
/** Change the owner of an object
Need to be the root administrator */
Need to be the root administrator
@param string $object Object path to add
@param integer $owner Owner ID of the object */
public function chown ($object, $owner)
{
}
/** Change the group of an object
Need to be the owner of the object or the root administrator */
Need to be the owner of the object or the root administrator
@param string $object Object path to add
@param integer $group Group ID of the object */
public function chgrp ($object, $group)
{
}
/** Change mode bits for an object
Need to be the owner of the object or the root administrator */
Need to be the owner of the object or the root administrator
@param string $object Object path to change
@param integer $mod Bits of authorization */
public function chmod ($object, $mod)
{
}
/** Return the mode bits for an object if all his parents are readable for
the user */
the user
@param string $object Object path to examine */
public function lsmod ($object)
{
}
/** Return the owner for an object if all his parents are readable for
the user */
the user
@param string $object Object path to examine */
public function lsown ($object)
{
}
/** Return the owner for an object if all his parents are readable for
the user */
the user
@param string $object Object path to examine */
public function lsgrp ($object)
{
}