original_string: function GrantAddContentToPage(Page $page)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup(GroupFinder::FindPageGroup($page));
          $pageRights = RightsFinder::FindPageRights($page);
          if ($pageRights)
          {
              $content->SetUserGroupRights($pageRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code: function GrantAddContentToPage(Page $page)
      {
          //dummy content for evaluation
          $content = new Content();
          $content->SetUserGroup(GroupFinder::FindPageGroup($page));
          $pageRights = RightsFinder::FindPageRights($page);
          if ($pageRights)
          {
              $content->SetUserGroupRights($pageRights->GetContentRights());
          }
          return $this->Grant(BackendAction::Create(), $content);
      }
code_tokens: function GrantAddContentToPage ( Page $ page ) { //dummy content for evaluation $ content = new Content ( ) ; $ content -> SetUserGroup ( GroupFinder :: FindPageGroup ( $ page ) ) ; $ pageRights = RightsFinder :: FindPageRights ( $ page ) ; if ( $ pageRights ) { $ content -> SetUserGroupRights ( $ pageRights -> GetContentRights ( ) ) ; } return $ this -> Grant ( BackendAction :: Create ( ) , $ content ) ; }
docstring: Grant evaluation for adding content on top of a page area
  @param Page $page The page
  @return GrantResult GrantResult Returns the grant result telling if creation is allowed
docstring_tokens: Grant evaluation for adding content on top of a page area