Property | Type | Description | |
---|---|---|---|
$book | |||
$chapter | |||
$page |
Property | Type | Description | |
---|---|---|---|
$permissionService | |||
$queryOperators | array | Acceptable operators to be used in a query |
Method | Description | |
---|---|---|
__construct ( ) | EntityService constructor. | |
buildJointPermissions ( |
Alias method to update the book jointPermissions in the PermissionService. | |
getRecentlyCreatedBooks ( integer $count = 20, integer $page, boolean $additionalQuery = false ) | Get the latest books added to the system. | |
getRecentlyCreatedChapters ( integer $count = 20, integer $page, boolean $additionalQuery = false ) | Get the latest chapters added to the system. | |
getRecentlyCreatedPages ( integer $count = 20, integer $page, boolean $additionalQuery = false ) | Get the latest pages added to the system. | |
getRecentlyUpdatedBooks ( $count = 20, integer $page ) : mixed | Get the most recently updated books. | |
getRecentlyUpdatedPages ( $count = 20, integer $page ) : mixed | Get the most recently updated pages. | |
getUserDraftPages ( integer $count = 20, integer $page ) | Get draft pages owned by the current user. | |
prepareSearchTerms ( $termString ) : array | Prepare a string of search terms by turning it into an array of terms. | |
updateEntityPermissionsFromRequest ( $request, |
Updates entity restrictions from a request |
Method | Description | |
---|---|---|
addAdvancedSearchQueries ( $query, $termString ) : mixed | Parses advanced search notations and adds them to the db query. | |
applyTagSearches ( $query, $tags ) : mixed | Apply extracted tag search terms onto a entity query. | |
cleanSearchTermString ( $termString ) : mixed | Removes any special search notation that should not be used in a full-text search. | |
getRegexEscapedOperators ( ) : mixed | Get the available query operators as a regex escaped list. | |
nameToSlug ( $name ) : string | Format a name as a url slug. |
protected addAdvancedSearchQueries ( $query, $termString ) : mixed | ||
$query | ||
$termString | ||
return | mixed |
protected applyTagSearches ( $query, $tags ) : mixed | ||
$query | ||
$tags | ||
return | mixed |
public buildJointPermissions ( |
||
$collection | collection on entities |
protected cleanSearchTermString ( $termString ) : mixed | ||
$termString | ||
return | mixed |
public getRecentlyUpdatedBooks ( $count = 20, integer $page ) : mixed | ||
$count | ||
$page | integer | |
return | mixed |
public getRecentlyUpdatedPages ( $count = 20, integer $page ) : mixed | ||
$count | ||
$page | integer | |
return | mixed |
protected getRegexEscapedOperators ( ) : mixed | ||
return | mixed |
public getUserDraftPages ( integer $count = 20, integer $page ) | ||
$count | integer | |
$page | integer |
protected nameToSlug ( $name ) : string | ||
$name | ||
return | string |
public prepareSearchTerms ( $termString ) : array | ||
$termString | ||
return | array |
public updateEntityPermissionsFromRequest ( $request, |
||
$request | ||
$entity |
protected PermissionService,BookStack\Services $permissionService | ||
return |
protected array $queryOperators | ||
return | array |