Add a class to handle clean up access table.
Add a class to get access rules from xml_access table directly.
Add a new file to handle get access rules from a xml access document.
Remove the file which we didn't use.
Made a shortcut for % search. It will look like: LIKE '%' rather than: LIKE '%%%'.
In accessQuery, permission=READ or permission=ALL was added for both allow rule and deny rule.
Create a shortcut for the query to get user's onwer doc lists. Create a private method named getOwnerQuery. If the coming query equals the owner query, the access permission checking would NOT append to the comming query. Because the owner has all permission.
Add three private method: createOwnerQuery, createAllowRuleQuery and createDenyRuleQuery. And three public methods: setUserName, setGroup and getAccessQuery.
Add the checking permission query into orignal query.
Add code to make sure that a DBConnection checked out is auto commit.
View revisions
Also available in: Atom