PHP 클래스 KnowbaseItem, glpi

상속: extends CommonDBTM
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$dohistory From CommonDBTM
$rightname

보호된 프로퍼티들

프로퍼티 타입 설명
$entities
$groups
$profiles
$users For visibility checks

공개 메소드들

메소드 설명
addToFaq ( ) : nothing Add kb item to the public FAQ
addVisibilityJoins ( $forceall = false ) : string Return visibility joins to add to SQL
addVisibilityRestrict ( ) : string Return visibility SQL restriction to add
canCreate ( )
canUpdate ( )
canUpdateItem ( )
canView ( )
canViewItem ( )
cleanDBonPurge ( )
countVisibilities ( )
defineTabs ( $options = [] )
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
getAnswer ( ) : string Get KB answer, with id on titles to set anchors
getListRequest ( array $params, $type = 'search' ) : String Build request for showList
getMenuName ( )
getMenuShorcut ( )
getRights ( $interface = 'central' )
getSearchOptions ( )
getSearchURL ( $full = true ) Get the search page URL for the current classe
getTabNameForItem ( CommonGLPI $item, $withtemplate )
getTypeName ( $nb )
haveVisibilityAccess ( ) : boolean Is the login user have access to KnowbaseItem based on visibility configuration
isPubliclyVisible ( ) : boolean Check is this item if visible to everybody (anonymous users)
post_addItem ( )
post_getEmpty ( ) : nothing Actions done at the end of the getEmpty function
post_getFromDB ( )
prepareInputForAdd ( $input )
prepareInputForUpdate ( $input )
searchForm ( $options ) : nothing Print out an HTML form for Search knowbase item
showBrowseForm ( $options ) : nothing Print out an HTML "
" for Search knowbase item
showForm ( $ID, $options = [] ) : nothing Print out an HTML "" for knowbase item
showFull ( $options = [] ) : nothing Print out (html) show item : question and answer
showList ( $options, $type = 'search' ) Print out list kb item
showManageForm ( $options ) : nothing Print out an HTML form for Search knowbase item
showRecentPopular ( $type ) : nothing Print out list recent or popular kb/faq
showVisibility ( ) Show visibility config for a knowbaseitem
updateCounter ( ) Increase the view counter of the current knowbaseitem

메소드 상세

addToFaq() 공개 메소드

Add kb item to the public FAQ
public addToFaq ( ) : nothing
리턴 nothing

addVisibilityJoins() 정적인 공개 메소드

Return visibility joins to add to SQL
static public addVisibilityJoins ( $forceall = false ) : string
$forceall force all joins (false by default)
리턴 string joins to add

addVisibilityRestrict() 정적인 공개 메소드

Return visibility SQL restriction to add
static public addVisibilityRestrict ( ) : string
리턴 string restrict to add

canCreate() 정적인 공개 메소드

static public canCreate ( )

canUpdate() 정적인 공개 메소드

static public canUpdate ( )

canUpdateItem() 공개 메소드

public canUpdateItem ( )

canView() 정적인 공개 메소드

static public canView ( )

canViewItem() 공개 메소드

public canViewItem ( )

cleanDBonPurge() 공개 메소드

또한 보기: CommonDBTM::cleanDBonPurge()
public cleanDBonPurge ( )

countVisibilities() 공개 메소드

public countVisibilities ( )

defineTabs() 공개 메소드

public defineTabs ( $options = [] )

displayTabContentForItem() 정적인 공개 메소드

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

getAnswer() 공개 메소드

Get KB answer, with id on titles to set anchors
public getAnswer ( ) : string
리턴 string

getListRequest() 정적인 공개 메소드

Build request for showList
static public getListRequest ( array $params, $type = 'search' ) : String
$params array array (contains, knowbaseitemcategories_id, faq)
$type string search type : browse / search (default search)
리턴 String : SQL request

getMenuName() 정적인 공개 메소드

또한 보기: CommonGLPI::getMenuName()
static public getMenuName ( )

getMenuShorcut() 정적인 공개 메소드

또한 보기: CommonGLPI::getMenuShorcut()
static public getMenuShorcut ( )

getRights() 공개 메소드

또한 보기: commonDBTM::getRights()
public getRights ( $interface = 'central' )

getSearchOptions() 공개 메소드

public getSearchOptions ( )

getSearchURL() 정적인 공개 메소드

Get the search page URL for the current classe
static public getSearchURL ( $full = true )
$full path or relative one (true by default)

getTabNameForItem() 공개 메소드

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() 정적인 공개 메소드

static public getTypeName ( $nb )

haveVisibilityAccess() 공개 메소드

Is the login user have access to KnowbaseItem based on visibility configuration
public haveVisibilityAccess ( ) : boolean
리턴 boolean

isPubliclyVisible() 공개 메소드

Check is this item if visible to everybody (anonymous users)
public isPubliclyVisible ( ) : boolean
리턴 boolean

post_addItem() 공개 메소드

또한 보기: CommonDBTM::post_addItem()
public post_addItem ( )

post_getEmpty() 공개 메소드

Actions done at the end of the getEmpty function
public post_getEmpty ( ) : nothing
리턴 nothing

post_getFromDB() 공개 메소드

public post_getFromDB ( )

prepareInputForAdd() 공개 메소드

또한 보기: CommonDBTM::prepareInputForAdd()
public prepareInputForAdd ( $input )

prepareInputForUpdate() 공개 메소드

또한 보기: CommonDBTM::prepareInputForUpdate()
public prepareInputForUpdate ( $input )

searchForm() 공개 메소드

Print out an HTML form for Search knowbase item
public searchForm ( $options ) : nothing
$options $_GET
리턴 nothing (display the form)

showBrowseForm() 공개 메소드

Print out an HTML "" for Search knowbase item
public showBrowseForm ( $options ) : nothing
$options $_GET
리턴 nothing (display the form)

showForm() 공개 메소드

Print out an HTML "" for knowbase item
public showForm ( $ID, $options = [] ) : nothing
$ID
$options array - target for the Form
리턴 nothing (display the form)

showFull() 공개 메소드

Print out (html) show item : question and answer
public showFull ( $options = [] ) : nothing
$options array of options
리턴 nothing (display item : question and answer)

showList() 정적인 공개 메소드

Print out list kb item
static public showList ( $options, $type = 'search' )
$options $_GET
$type string search type : browse / search (default search)

showManageForm() 공개 메소드

Print out an HTML form for Search knowbase item
public showManageForm ( $options ) : nothing
$options $_GET
리턴 nothing (display the form)

showRecentPopular() 정적인 공개 메소드

Print out list recent or popular kb/faq
static public showRecentPopular ( $type ) : nothing
$type type : recent / popular / not published
리턴 nothing (display table)

showVisibility() 공개 메소드

Show visibility config for a knowbaseitem
public showVisibility ( )

updateCounter() 공개 메소드

Increase the view counter of the current knowbaseitem
public updateCounter ( )

프로퍼티 상세

$dohistory 공개적으로 프로퍼티

From CommonDBTM
public $dohistory

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

protected $entities

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

protected $groups

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

protected $profiles

$rightname 정적으로 공개적으로 프로퍼티

static public $rightname

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

For visibility checks
protected $users