]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/UI/WebControls/TDataGridPagerStyle.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / UI / WebControls / TDataGridPagerStyle.php
index 4e143e055372afd2d3eb3f89d136b9cda0d441b6..fc5b8480c79994e3d2d935b0343027766c53741d 100644 (file)
@@ -3,9 +3,9 @@
  * TDataGridPagerStyle class file.
  *
  * @author Qiang Xue <qiang.xue@gmail.com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright &copy; 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
  * @package System.Web.UI.WebControls
  */
 
@@ -32,6 +32,35 @@ class TDataGridPagerStyle extends TPanelStyle
        private $_visible=null;
        private $_buttonType=null;
 
+       /**
+        * Returns an array with the names of all variables of this object that should NOT be serialized
+        * because their value is the default one or useless to be cached for the next page loads.
+        * Reimplement in derived classes to add new variables, but remember to  also to call the parent
+        * implementation first.
+        */
+       protected function _getZappableSleepProps(&$exprops)
+       {
+               parent::_getZappableSleepProps($exprops);
+               if ($this->_mode===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_mode";
+               if ($this->_nextText===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_nextText";
+               if ($this->_prevText===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_prevText";
+               if ($this->_firstText===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_firstText";
+               if ($this->_lastText===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_lastText";
+               if ($this->_buttonCount===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_buttonCount";
+               if ($this->_position===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_position";
+               if ($this->_visible===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_visible";
+               if ($this->_buttonType===null)
+                       $exprops[] = "\0TDataGridPagerStyle\0_buttonType";
+       }
+
        /**
         * @return TDataGridPagerMode pager mode. Defaults to TDataGridPagerMode::NextPrev.
         */