Zepi/Core/AccessControl/src/Manager/EventAccessManager.php
public function addItem($eventName, $accessLevel)
    {
        if (!isset($this->items[$eventName])) {
            $this->items[$eventName] = array();
        }
        
        if (in_array($accessLevel, $this->items[$eventName])) {
            return;
        }
        
        // Add the definition
        $this->items[$eventName][] = $accessLevel;
        
        // Save the items
        $this->saveItems();
    }
public function addItem($eventName, $accessLevel)
    {
        if (!isset($this->items[$eventName])) {
            $this->items[$eventName] = array();
        }
        
        if (in_array($accessLevel, $this->items[$eventName])) {
            return;
        }
        
        // Add the definition
        $this->items[$eventName][] = $accessLevel;
        
        // Save the items
        $this->saveItems();
    }
public function addItem ( $ eventName , $ accessLevel ) { if ( ! isset ( $ this -> items [ $ eventName ] ) ) { $ this -> items [ $ eventName ] = array ( ) ; } if ( in_array ( $ accessLevel , $ this -> items [ $ eventName ] ) ) { return ; } // Add the definition $ this -> items [ $ eventName ] [ ] = $ accessLevel ; // Save the items $ this -> saveItems ( ) ; }
Adds the  access levels for the event name

@access public
@param string $eventName
@param string $accessLevel
Adds the access levels for the event name