Zepi/Web/AccessControl/src/EventHandler/Activation.php
public function execute(Framework $framework, WebRequest $request, Response $response)
    {
        $title = $this->translate('Activate account', '\\Zepi\\Web\\AccessControl');
        
        // Prepare the page
        $this->setTitle($title);
        
        // Get the cluster
        $uuid = $request->getRouteParam('uuid');
        $activationToken = $request->getRouteParam('token');
        
        // Activate the user
        $result = array('result' => false, 'message' => $this->translate('Wrong request parameters.', '\\Zepi\\Web\\AccessControl'));
        if ($uuid != false && $activationToken != false) {
            $result = $this->activateUser($uuid, $activationToken);
        }
        
        // Display the result
        $response->setOutput($this->render('\\Zepi\\Web\\AccessControl\\Templates\\Activation', array(
            'result' => $result
        )));
    }
public function execute(Framework $framework, WebRequest $request, Response $response)
    {
        $title = $this->translate('Activate account', '\\Zepi\\Web\\AccessControl');
        
        // Prepare the page
        $this->setTitle($title);
        
        // Get the cluster
        $uuid = $request->getRouteParam('uuid');
        $activationToken = $request->getRouteParam('token');
        
        // Activate the user
        $result = array('result' => false, 'message' => $this->translate('Wrong request parameters.', '\\Zepi\\Web\\AccessControl'));
        if ($uuid != false && $activationToken != false) {
            $result = $this->activateUser($uuid, $activationToken);
        }
        
        // Display the result
        $response->setOutput($this->render('\\Zepi\\Web\\AccessControl\\Templates\\Activation', array(
            'result' => $result
        )));
    }
public function execute ( Framework $ framework , WebRequest $ request , Response $ response ) { $ title = $ this -> translate ( 'Activate account' , '\\Zepi\\Web\\AccessControl' ) ; // Prepare the page $ this -> setTitle ( $ title ) ; // Get the cluster $ uuid = $ request -> getRouteParam ( 'uuid' ) ; $ activationToken = $ request -> getRouteParam ( 'token' ) ; // Activate the user $ result = array ( 'result' => false , 'message' => $ this -> translate ( 'Wrong request parameters.' , '\\Zepi\\Web\\AccessControl' ) ) ; if ( $ uuid != false && $ activationToken != false ) { $ result = $ this -> activateUser ( $ uuid , $ activationToken ) ; } // Display the result $ response -> setOutput ( $ this -> render ( '\\Zepi\\Web\\AccessControl\\Templates\\Activation' , array ( 'result' => $ result ) ) ) ; }
Deletes a cluster in the database

@access public
@param \Zepi\Turbo\Framework $framework
@param \Zepi\Turbo\Request\WebRequest $request
@param \Zepi\Turbo\Response\Response $response
Deletes a cluster in the database