PHP 클래스 ProcessPageListerBookmarks, ProcessWire

Helper class for managing ProcessPageLister bookmarks
상속: extends Wire
파일 보기 프로젝트 열기: ryancramerdesign/ProcessWire

보호된 프로퍼티들

프로퍼티 타입 설명
$lister

공개 메소드들

메소드 설명
__construct ( ProcessPageLister $lister )
buildBookmarkListForm ( ) : InputfieldForm Build the bookmarks tab and form contained within it
editBookmark ( ) : string Implementation for editing a bookmark, URL segment: ./edit-bookmark/?n=bookmarkID
getBookmarks ( ) : array Get configured bookmarks allowed for current user

보호된 메소드들

메소드 설명
buildBookmarkEditForm ( integer $bookmarkID, array $bookmarks = [] ) : InputfieldWrapper Build the form needed to edit/add bookmarks
saveBookmark ( ) Save a bookmark posted by ./edit-bookmark/

메소드 상세

__construct() 공개 메소드

public __construct ( ProcessPageLister $lister )
$lister ProcessPageLister

buildBookmarkEditForm() 보호된 메소드

Build the form needed to edit/add bookmarks
protected buildBookmarkEditForm ( integer $bookmarkID, array $bookmarks = [] ) : InputfieldWrapper
$bookmarkID integer Specify bookmark ID if editing existing bookmark
$bookmarks array Optionally include list of all bookmarks to prevent this method from having to re-load them
리턴 InputfieldWrapper

buildBookmarkListForm() 공개 메소드

Build the bookmarks tab and form contained within it
public buildBookmarkListForm ( ) : InputfieldForm
리턴 InputfieldForm

editBookmark() 공개 메소드

Implementation for editing a bookmark, URL segment: ./edit-bookmark/?n=bookmarkID
public editBookmark ( ) : string
리턴 string

getBookmarks() 공개 메소드

Get configured bookmarks allowed for current user
public getBookmarks ( ) : array
리턴 array

saveBookmark() 보호된 메소드

Performs redirect after saving
protected saveBookmark ( )

프로퍼티 상세

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

protected $lister