Settings_Picklist_SaveAjax_Action
extends Settings_Vtiger_Basic_Action
in package
Uses
ExposeMethod
Abstract action controller class.
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).
- $csrfInitiated : bool
- __construct() : mixed
- Constructor.
- assignValueToRole() : mixed
- Function which will assign existing values to the roles.
- checkPermission() : mixed
- Function to check permission.
- edit() : mixed
- Edit picklist value data.
- enableOrDisable() : void
- Change state of picklist values permissions.
- import() : void
- Import Picklist.
- 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.
- 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.
- preSaveValidation() : void
- PreSave validation function.
- process() : mixed
- Process function.
- remove() : mixed
- Action to remove element.
- saveOrder() : void
- Save picklist values order.
- sendHeaders() : mixed
- Send headers.
- updateFieldPinnedStatus() : mixed
- validateRequest() : void
- Function to validate request method.
- exposeMethod() : mixed
- Function that will expose methods for external access.
- getItemModelFromRequest() : Item
- Function to get the picklist value model based on the request parameters.
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
= []
$csrfInitiated
private
static bool
$csrfInitiated
= false
CSRF already initiated.
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —assignValueToRole()
Function which will assign existing values to the roles.
public
assignValueToRole(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —checkPermission()
Function to check permission.
public
abstract checkPermission(Request $request) : mixed
Parameters
- $request : Request
Tags
Return values
mixed —edit()
Edit picklist value data.
public
edit(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —enableOrDisable()
Change state of picklist values permissions.
public
enableOrDisable(Request $request) : void
Parameters
- $request : Request
Return values
void —import()
Import Picklist.
public
import(Request $request) : void
Parameters
- $request : Request
Return values
void —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 —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 —preSaveValidation()
PreSave validation function.
public
preSaveValidation(Request $request) : void
Parameters
- $request : Request
Return values
void —process()
Process function.
public
abstract process(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —remove()
Action to remove element.
public
remove(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —saveOrder()
Save picklist values order.
public
saveOrder(Request $request) : void
Parameters
- $request : Request
Return values
void —sendHeaders()
Send headers.
public
sendHeaders() : mixed
Return values
mixed —updateFieldPinnedStatus()
public
updateFieldPinnedStatus(Request $request) : mixed
Parameters
- $request : Request
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
Return values
mixed —getItemModelFromRequest()
Function to get the picklist value model based on the request parameters.
protected
getItemModelFromRequest(Request $request) : Item
Parameters
- $request : Request