JController/setAccessControl: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Sets the access control levels.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowi... |
No edit summary |
||
| Line 36: | Line 36: | ||
===Source Body=== | ===Source Body=== | ||
<source lang="php"> | <source lang="php"> | ||
function setAccessControl($section, $value = null) | function setAccessControl( $section, $value = null ) | ||
{ | { | ||
$this->_acoSection = $section; | $this->_acoSection = $section; | ||
Revision as of 22:09, 22 March 2010
Description
Sets the access control levels.
Template:Description:JController/setAccessControl
Syntax
setAccessControl($section, $value=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $section | The ACO section (eg, the component). | |
| $value | null | The ACO section value (if using a constant value). |
Returns
void
Defined in
libraries/joomla/application/component/controller.php
Importing
jimport( 'joomla.application.component.controller' );
Source Body
function setAccessControl( $section, $value = null )
{
$this->_acoSection = $section;
$this->_acoSectionValue = $value;
}
[Edit See Also] Template:SeeAlso:JController/setAccessControl
Examples
<CodeExamplesForm />