public function createAuthItems() {
        foreach($this->privileges as $privilege) {
            $this->insert('AuthItem', [
                "name" => $privilege.'::'.$this->getController(),
                "type" => 0,
                "description" => $privilege.' '.$this->getController(),
                "bizrule" => null,
                "data" => 'a:2:{s:6:"module";s:'.strlen($this->menu).':"'.$this->menu.'";s:10:"controller";s:'.strlen($this->friendly($this->getController())).':"'.$this->friendly($this->getController()).'";}',
            ]);
            $this->insert('AuthItemChild', [
                "parent" => 1,
                "child" => $privilege.'::'.$this->getController(),
            ]);
        }       
    }
public function createAuthItems() {
        foreach($this->privileges as $privilege) {
            $this->insert('AuthItem', [
                "name" => $privilege.'::'.$this->getController(),
                "type" => 0,
                "description" => $privilege.' '.$this->getController(),
                "bizrule" => null,
                "data" => 'a:2:{s:6:"module";s:'.strlen($this->menu).':"'.$this->menu.'";s:10:"controller";s:'.strlen($this->friendly($this->getController())).':"'.$this->friendly($this->getController()).'";}',
            ]);
            $this->insert('AuthItemChild', [
                "parent" => 1,
                "child" => $privilege.'::'.$this->getController(),
            ]);
        }       
    }
public function createAuthItems ( ) { foreach ( $ this -> privileges as $ privilege ) { $ this -> insert ( 'AuthItem' , [ "name" => $ privilege . '::' . $ this -> getController ( ) , "type" => 0 , "description" => $ privilege . ' ' . $ this -> getController ( ) , "bizrule" => null , "data" => 'a:2:{s:6:"module";s:' . strlen ( $ this -> menu ) . ':"' . $ this -> menu . '";s:10:"controller";s:' . strlen ( $ this -> friendly ( $ this -> getController ( ) ) ) . ':"' . $ this -> friendly ( $ this -> getController ( ) ) . '";}' , ] ) ; $ this -> insert ( 'AuthItemChild' , [ "parent" => 1 , "child" => $ privilege . '::' . $ this -> getController ( ) , ] ) ; } }
Creates the AuthItems for a controller

@return null
Creates the AuthItems for a controller