Faq_KnowledgeBaseAjax_Action
extends KnowledgeBase_KnowledgeBaseAjax_Action
in package
Action to get data of tree.
Tags
Table of Contents
- $headers : Headers
- $activatedLocale : bool
- $exposedMethods : array<string|int, string>
- Control the exposure of methods to be invoked from client (kind-of RPC).
- $queryCondition : array<string|int, string>
- Detail query conditions.
- $csrfInitiated : bool
- __construct() : mixed
- Constructor.
- categories() : void
- Get categories for knowledge base.
- checkPermission() : mixed
- Function to check permission.
- detail() : void
- Details knowledge base.
- getAccounts() : void
- Get accounts list.
- getModel() : void
- Get KnowledgeBase model instance.
- getRelated() : array<string|int, mixed>
- Get related records.
- getRelatedComments() : array<string|int, mixed>
- Get related comments.
- getRelatedRecords() : array<string|int, mixed>
- Get related records.
- invokeExposedMethod() : type
- Function invokes exposed methods for this class.
- isMethodExposed() : bool
- Function checks if the method is exposed for client usage.
- isSessionExtend() : bool
- Function to check if session is extended.
- list() : void
- Get data for knowledge base.
- loginRequired() : bool
- Function to check login required permission.
- postProcess() : mixed
- Post process function.
- postProcessAjax() : mixed
- Post process ajax function.
- preProcess() : mixed
- Pre process function.
- preProcessAjax() : mixed
- Pre process ajax function.
- process() : mixed
- Process function.
- search() : void
- Search for knowledge base.
- sendHeaders() : mixed
- Send headers.
- validateRequest() : void
- Function to validate request method.
- exposeMethod() : mixed
- Function that will expose methods for external access.
Properties
$headers
public
Headers
$headers
Headers instance.
$activatedLocale
protected
static bool
$activatedLocale
= false
Activated language locale.
$exposedMethods
Control the exposure of methods to be invoked from client (kind-of RPC).
protected
array<string|int, string>
$exposedMethods
= []
$queryCondition
Detail query conditions.
protected
array<string|int, string>
$queryCondition
= ['vtiger_faq.status' => 'Published']
$csrfInitiated
private
static bool
$csrfInitiated
= false
CSRF already initiated.
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —categories()
Get categories for knowledge base.
public
categories(Request $request) : void
Parameters
- $request : Request
Return values
void —checkPermission()
Function to check permission.
public
abstract checkPermission(Request $request) : mixed
Parameters
- $request : Request
Tags
Return values
mixed —detail()
Details knowledge base.
public
detail(Request $request) : void
Parameters
- $request : Request
Return values
void —getAccounts()
Get accounts list.
public
getAccounts(Request $request) : void
Parameters
- $request : Request
Return values
void —getModel()
Get KnowledgeBase model instance.
public
getModel(Request $request) : void
Parameters
- $request : Request
Return values
void —getRelated()
Get related records.
public
getRelated(Vtiger_Record_Model $recordModel) : array<string|int, mixed>
Parameters
- $recordModel : Vtiger_Record_Model
Return values
array<string|int, mixed> —getRelatedComments()
Get related comments.
public
getRelatedComments(int $recordId) : array<string|int, mixed>
Parameters
- $recordId : int
Return values
array<string|int, mixed> —getRelatedRecords()
Get related records.
public
getRelatedRecords(Vtiger_Record_Model $recordModel, string $moduleName) : array<string|int, mixed>
Parameters
- $recordModel : Vtiger_Record_Model
- $moduleName : string
Return values
array<string|int, mixed> —invokeExposedMethod()
Function invokes exposed methods for this class.
public
invokeExposedMethod() : type
Tags
Return values
type —isMethodExposed()
Function checks if the method is exposed for client usage.
public
isMethodExposed(string $name) : bool
Parameters
- $name : string
-
- method name
Return values
bool —isSessionExtend()
Function to check if session is extended.
public
isSessionExtend(Request $request) : bool
Parameters
- $request : Request
Return values
bool —list()
Get data for knowledge base.
public
list(Request $request) : void
Parameters
- $request : Request
Return values
void —loginRequired()
Function to check login required permission.
public
loginRequired() : bool
Return values
bool —postProcess()
Post process function.
public
postProcess(Request $request[, bool $display = true ]) : mixed
Parameters
- $request : Request
- $display : bool = true
Return values
mixed —postProcessAjax()
Post process ajax function.
public
postProcessAjax(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —preProcess()
Pre process function.
public
preProcess(Request $request[, bool $display = true ]) : mixed
Parameters
- $request : Request
- $display : bool = true
Return values
mixed —preProcessAjax()
Pre process ajax function.
public
preProcessAjax(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —process()
Process function.
public
abstract process(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —search()
Search for knowledge base.
public
search(Request $request) : void
Parameters
- $request : Request
Return values
void —sendHeaders()
Send headers.
public
sendHeaders() : mixed
Return values
mixed —validateRequest()
Function to validate request method.
public
validateRequest(Request $request) : void
Parameters
- $request : Request
Return values
void —exposeMethod()
Function that will expose methods for external access.
protected
exposeMethod(string $name) : mixed
Parameters
- $name : string
-
- method name