API15

API15:JController/setAccessControl

From Joomla! Documentation

Revision as of 00:24, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Sets the access control levels.

[<! removed edit link to red link >]

<! 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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples