PHP 클래스 BookStack\Repos\EntityRepo

파일 보기 프로젝트 열기: ssddanbrown/bookstack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$book BookStack\Book
$chapter BookStack\Chapter
$page BookStack\Page

보호된 프로퍼티들

프로퍼티 타입 설명
$permissionService BookStack\Services\PermissionService
$queryOperators array Acceptable operators to be used in a query

공개 메소드들

메소드 설명
__construct ( ) EntityService constructor.
buildJointPermissions ( Collection $collection ) 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, Entity $entity ) Updates entity restrictions from a request

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

EntityService constructor.
public __construct ( )

addAdvancedSearchQueries() 보호된 메소드

Parses advanced search notations and adds them to the db query.
protected addAdvancedSearchQueries ( $query, $termString ) : mixed
$query
$termString
리턴 mixed

applyTagSearches() 보호된 메소드

Apply extracted tag search terms onto a entity query.
protected applyTagSearches ( $query, $tags ) : mixed
$query
$tags
리턴 mixed

buildJointPermissions() 공개 메소드

Alias method to update the book jointPermissions in the PermissionService.
public buildJointPermissions ( Collection $collection )
$collection Illuminate\Support\Collection collection on entities

cleanSearchTermString() 보호된 메소드

Removes any special search notation that should not be used in a full-text search.
protected cleanSearchTermString ( $termString ) : mixed
$termString
리턴 mixed

getRecentlyCreatedBooks() 공개 메소드

Get the latest books added to the system.
public getRecentlyCreatedBooks ( integer $count = 20, integer $page, boolean $additionalQuery = false )
$count integer
$page integer
$additionalQuery boolean

getRecentlyCreatedChapters() 공개 메소드

Get the latest chapters added to the system.
public getRecentlyCreatedChapters ( integer $count = 20, integer $page, boolean $additionalQuery = false )
$count integer
$page integer
$additionalQuery boolean

getRecentlyCreatedPages() 공개 메소드

Get the latest pages added to the system.
public getRecentlyCreatedPages ( integer $count = 20, integer $page, boolean $additionalQuery = false )
$count integer
$page integer
$additionalQuery boolean

getRecentlyUpdatedBooks() 공개 메소드

Get the most recently updated books.
public getRecentlyUpdatedBooks ( $count = 20, integer $page ) : mixed
$count
$page integer
리턴 mixed

getRecentlyUpdatedPages() 공개 메소드

Get the most recently updated pages.
public getRecentlyUpdatedPages ( $count = 20, integer $page ) : mixed
$count
$page integer
리턴 mixed

getRegexEscapedOperators() 보호된 메소드

Get the available query operators as a regex escaped list.
protected getRegexEscapedOperators ( ) : mixed
리턴 mixed

getUserDraftPages() 공개 메소드

Get draft pages owned by the current user.
public getUserDraftPages ( integer $count = 20, integer $page )
$count integer
$page integer

nameToSlug() 보호된 메소드

Format a name as a url slug.
protected nameToSlug ( $name ) : string
$name
리턴 string

prepareSearchTerms() 공개 메소드

Keeps quoted terms together.
public prepareSearchTerms ( $termString ) : array
$termString
리턴 array

updateEntityPermissionsFromRequest() 공개 메소드

Updates entity restrictions from a request
public updateEntityPermissionsFromRequest ( $request, Entity $entity )
$request
$entity BookStack\Entity

프로퍼티 상세

$book 공개적으로 프로퍼티

public Book,BookStack $book
리턴 BookStack\Book

$chapter 공개적으로 프로퍼티

public Chapter,BookStack $chapter
리턴 BookStack\Chapter

$page 공개적으로 프로퍼티

public Page,BookStack $page
리턴 BookStack\Page

$permissionService 보호되어 있는 프로퍼티

protected PermissionService,BookStack\Services $permissionService
리턴 BookStack\Services\PermissionService

$queryOperators 보호되어 있는 프로퍼티

Acceptable operators to be used in a query
protected array $queryOperators
리턴 array