Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/PHP_CON/file/BSGetDirFileReadAccess.php
<?PHP

class BSGetDirFileReadAccess
{
	function BSGetDirFileReadAccess()
	{
	}

	function getAuthList($_id, $_ownerid, $_type)
	{
		$filedir_db = null;
		//$daogfda = new DAOGetFileDirAttr();
		
		if ($_type==SFILE)
		{
			$daogal = new DAOGetAttrList();
			$tr = $daogal->getUserFileParamAttrById($_id, $_ownerid);
			//$filedir_db = $daogfda->getFileById($_id);
			return $tr;
		}
		elseif ($_type==DIRECTORY)
		{
			$daogal = new DAOGetAttrList();
			$tr = $daogal->getUserDirParamAttrById($_id, $_ownerid);
			//$filedir_db = $daogfda->getDirById($_id);
			return $tr;
		}

	}
	function getDirAuthList($_request, $_response)
	{
		$daogal = new DAOGetAttrList();
		$_response['userdirparam'] = $daogal->getUserDirParamAttrById($_request['dir_id'], $_request['ownerid']);
		return $_response;
	}
}

?>
Return current item: RabbitBB - Online Web Storage Project