本文整理汇总了PHP中Dumper::_cascade方法的典型用法代码示例。如果您正苦于以下问题:PHP Dumper::_cascade方法的具体用法?PHP Dumper::_cascade怎么用?PHP Dumper::_cascade使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dumper
的用法示例。
在下文中一共展示了Dumper::_cascade方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cascade
/**
* 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;
}