]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/framework/Web/UI/WebControls/TPanelStyle.php
baculum: New Baculum API and Baculum Web
[bacula/bacula] / gui / baculum / framework / Web / UI / WebControls / TPanelStyle.php
index d1dfe62e83adb73ed6da120eff42d9dc705d91b3..8bb1354bbccce90c3e52a93b9a9fc7fc9025906d 100644 (file)
@@ -3,9 +3,9 @@
  * TPanelStyle 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
  */
 
@@ -45,6 +45,27 @@ class TPanelStyle extends TStyle
         */
        private $_wrap=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->_backImageUrl===null)
+                       $exprops[] = "\0TPanelStyle\0_backImageUrl";
+               if ($this->_direction===null)
+                       $exprops[] = "\0TPanelStyle\0_direction";
+               if ($this->_horizontalAlign===null)
+                       $exprops[] = "\0TPanelStyle\0_horizontalAlign";
+               if ($this->_scrollBars===null)
+                       $exprops[] = "\0TPanelStyle\0_scrollBars";
+               if ($this->_wrap===null)
+                       $exprops[] = "\0TPanelStyle\0_wrap";
+       }
+
        /**
         * Adds attributes related to CSS styles to renderer.
         * This method overrides the parent implementation.