|
|
@@ -252,6 +252,8 @@ class BxDolGrid extends BxDolFactory implements iBxDolFactoryObject, iBxDolRepla
|
|
|
protected $_sDefaultSortingOrder = 'ASC';
|
|
|
protected $_iTotalCount = 0;
|
|
|
|
|
|
+ protected $_bActionCsrfChecking;
|
|
|
+
|
|
|
/**
|
|
|
* Constructor
|
|
|
* @param $aOptions array of grid options
|
|
|
@@ -262,6 +264,8 @@ class BxDolGrid extends BxDolFactory implements iBxDolFactoryObject, iBxDolRepla
|
|
|
|
|
|
$this->_bIsApi = bx_is_api();
|
|
|
|
|
|
+ $this->_bActionCsrfChecking = true;
|
|
|
+
|
|
|
$this->_sObject = $aOptions['object'];
|
|
|
$this->_aOptions = $aOptions;
|
|
|
|
|
|
@@ -647,6 +651,15 @@ class BxDolGrid extends BxDolFactory implements iBxDolFactoryObject, iBxDolRepla
|
|
|
{
|
|
|
return bx_unicode_urldecode(bx_process_input(bx_get($this->_aOptions['order_get_field'])));
|
|
|
}
|
|
|
+
|
|
|
+ public function setActionCsrfChecking($bCsrfChecking)
|
|
|
+ {
|
|
|
+ $this->_bActionCsrfChecking = $bCsrfChecking;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function isActionCsrfCheckingDisabled() {
|
|
|
+ return !$this->_bActionCsrfChecking;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/** @} */
|