JController/setAccessControl: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 45: | Line 45: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=setAccessControl | category=setAccessControl | ||
category=JController | category=JController | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:25, 25 March 2017
Description
Sets the access control levels.
<! removed transcluded page call, red link never existed >
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;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples