Sulu\Component\Webspace\Webspace::setSecurity PHP Method

setSecurity() public method

Sets the security system.
public setSecurity ( Security $security )
$security Security
    public function setSecurity($security)
    {
        $this->security = $security;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Generates and sets the security object from the XML document.
  */
 protected function generateSecurity()
 {
     $securitySystemNode = $this->xpath->query('/x:webspace/x:security/x:system');
     if ($securitySystemNode->length > 0) {
         $security = new Security();
         $security->setSystem($securitySystemNode->item(0)->nodeValue);
         $this->webspace->setSecurity($security);
     }
 }
All Usage Examples Of Sulu\Component\Webspace\Webspace::setSecurity