original_string: function GrantAddContentToContainer(Container $container)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup($container->GetUserGroup());
          $containerRights = $container->GetUserGroupRights();
          if ($containerRights)
          {
              $content->SetUserGroupRights($containerRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code: function GrantAddContentToContainer(Container $container)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup($container->GetUserGroup());
          $containerRights = $container->GetUserGroupRights();
          if ($containerRights)
          {
              $content->SetUserGroupRights($containerRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code_tokens: function GrantAddContentToContainer ( Container $ container ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( $ container -> GetUserGroup ( ) ) ; $ containerRights = $ container -> GetUserGroupRights ( ) ; if ( $ containerRights ) { $ content -> SetUserGroupRights ( $ containerRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
docstring: Grant evaluation for adding content on top of a container
  @param Container $container The container
  @return GrantResult Returns the grant result telling if creation is allowed
docstring_tokens: Grant evaluation for adding content on top of a container