Exemple #1
0
 public function hasScope(Scope $scope)
 {
     foreach ($scope->getScopeAsArray() as $s) {
         if (!in_array($s, $this->scope)) {
             return false;
         }
     }
     return true;
 }
 public function mergeWith(Scope $scope)
 {
     $this->_scope = $this->_normalizeScope(implode(" ", array_merge($this->_scope, $scope->getScopeAsArray())));
 }