aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/docs/auth_api.html
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-02-20 04:46:07 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-02-20 04:46:07 +0000
commit66b18be324deca4d392ee51f8b73a6d65b75eacc (patch)
treebc2a5913ee29ebc38ca7f85725d69efb29b748ce /phpBB/docs/auth_api.html
parente8e47bac0c6cb775b12a6393631f38b9e5962b1d (diff)
downloadforums-66b18be324deca4d392ee51f8b73a6d65b75eacc.tar
forums-66b18be324deca4d392ee51f8b73a6d65b75eacc.tar.gz
forums-66b18be324deca4d392ee51f8b73a6d65b75eacc.tar.bz2
forums-66b18be324deca4d392ee51f8b73a6d65b75eacc.tar.xz
forums-66b18be324deca4d392ee51f8b73a6d65b75eacc.zip
#8148
git-svn-id: file:///svn/phpbb/trunk@7020 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/docs/auth_api.html')
-rw-r--r--phpBB/docs/auth_api.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/docs/auth_api.html b/phpBB/docs/auth_api.html
index 8e624eae83..7481be50a8 100644
--- a/phpBB/docs/auth_api.html
+++ b/phpBB/docs/auth_api.html
@@ -235,7 +235,7 @@ $auth = new auth();
<p>The <code>acl</code> method is the initialisation routine for all the acl functions. If you intend calling any acl method you must first call this. The method takes as its one and only required parameter an associative array containing user information as stored in the database. This array must contain at least the following information; user_id, user_permissions and user_type. It is called in the following way:</p>
<blockquote><pre>
-$auth->acl(<code>userdata</code>);
+$auth-&gt;acl(<code>userdata</code>);
</pre></blockquote>
<p>Where userdata is the array containing the aforementioned data.</p>
@@ -252,7 +252,7 @@ $auth->acl(<code>userdata</code>);
<p>This method is the primary way of determining what a user can and cannot do for a given option globally or in a given forum. The method should be called in the following way:</p>
<blockquote><pre>
-$result = $auth->acl_get(<code>option</code>[, <code>forum</code>]);
+$result = $auth-&gt;acl_get(<code>option</code>[, <code>forum</code>]);
</pre></blockquote>
<p>Where option is a string representing the required option, e.g. 'f_list', 'm_edit', 'a_adduser', etc. By adding a ! in front of the option, e.g. '!f_list' the result of this method will be negated. The optional forum term is the integer forum_id.</p>
@@ -277,7 +277,7 @@ $result = $auth->acl_get(<code>option</code>[, <code>forum</code>]);
<p>The method should be called thus:</p>
<blockquote><pre>
-$result = $auth->acl_gets(<code>option1</code>[, <code>option2</code>, ..., <code>optionN</code>, <code>forum</code>]);
+$result = $auth-&gt;acl_gets(<code>option1</code>[, <code>option2</code>, ..., <code>optionN</code>, <code>forum</code>]);
</pre></blockquote>
<p>As with the <code>acl_get</code> method the options are strings representing the required permissions to check. The forum again is an integer representing a given forum_id.</p>
@@ -296,7 +296,7 @@ $result = $auth->acl_gets(<code>option1</code>[, <code>option2</code>, ..., <cod
<p>This method is used to find out in which forums a user is allowed to carry out an operation or to find out in which forums he is not allowed to carry out an operation. The method should be called in the following way:</p>
<blockquote><pre>
-$result = $auth->acl_getf(<code>option</code>[, <code>clean</code>]);
+$result = $auth-&gt;acl_getf(<code>option</code>[, <code>clean</code>]);
</pre></blockquote>
<p>Just like in the <code>acl_get</code> method the option is a string specifying the permission which has to be checked (negation using ! is allowed). The second parameter is a boolean. If it is set to false this method returns all forums with either zero or a positive integer. If it is set to true only those forums with a positive integer as the result will be returned.</p>
@@ -304,7 +304,7 @@ $result = $auth->acl_getf(<code>option</code>[, <code>clean</code>]);
<p>The method returns an associative array of the form:</p>
<blockquote><pre>
-array(<em>forum_id1</em> => array(<em>option</em> => <em>integer</em>), <em>forum_id2</em> => ...)
+array(<em>forum_id1</em> =&gt; array(<em>option</em> =&gt; <em>integer</em>), <em>forum_id2</em> =&gt; ...)
</pre></blockquote>
<p>Where option is the option passed to the method and integer is either zero or a positive integer and the same <code>acl_get(option, forum_id)</code> would return.</p>