Example #1
0
 /**
  * Set a cascade configuration array.
  *
  * Each value in the array is the maximum number of entries that node can
  * have before it is being collapsed. The last value is repeated for all
  * further levels.
  *
  * Example:
  * array(10,5,0) - Nodes from the first level are expanded if they have less
  *                 than or equal to 10 child nodes. Nodes from the second level are ex-
  *                 panded if they have less or equal to 5 nodes and all lower levels
  *                 are collapsed.
  *
  * Note:
  *   To reset, simply call this function with no arguments.
  *
  * @param array $cascade Cascading information
  * @access public
  * @static
  */
 public static function cascade(array $cascade = null)
 {
     self::$_cascade = $cascade;
 }