Apache Zeta Components Manual :: File Source for options.php
Source for file options.php
Documentation is available at options.php
* This file contains the ezcDebugOptions class.
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* @version //autogentag//
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* Options class for ezcDebug.
* @property bool $stackTrace
* Determines if a stack trace is stored and displayed with every
* debug message by default. Default is false.
* @property int $stackTraceDepth
* The number of levels to store for the stack trace. 0 means no
* limit and a complete stack trace will always be stored. Not that
* this might consume a large amount of memory. Default is 5.
* @property int $stackTraceMaxData
* Maximum bytes of data to print per variable in a stacktrace. This
* option does only affect {@link ezcDebugPhpStacktraceIterator},
* {@link ezcDebugXdebugStacktraceIterator} is configured by the
* Xdebug INI settings. Default is 512. Set to false to show all data.
* @property int $stackTraceMaxChildren
* Maximum number of children to dump on 1 level in array and object
* structures. This option does only affect {@link }
* ezcDebugPhpStacktraceIterator}, {@link }
* ezcDebugXdebugStacktraceIterator} is configured by the Xdebug INI
* settings. Default is 128. Set to false to show all children.
* @property int $stackTraceMaxDepth
* Maximum depth to recurse into array and object structures in a
* stack trace. This option does only affect {@link }
* ezcDebugPhpStacktraceIterator}, {@link }
* ezcDebugXdebugStacktraceIterator} is configured by the Xdebug INI
* settings. Default is 3. Set to false to recurse fully.
* @var array(string=>mixed)
'stackTraceMaxData' =>
512,
'stackTraceMaxChildren' =>
128,
'stackTraceMaxDepth' =>
3,
* @param string $propertyName Name of the property.
* @param mixed $propertyValue The value for the property.
* @throws ezcBasePropertyPermissionException
* If the property you try to access is read-only.
* @throws ezcBasePropertyNotFoundException
* If the the desired property is not found.
public function __set( $propertyName, $propertyValue )
if ( !is_int( $propertyValue ) ||
$propertyValue <
0 )
case 'stackTraceMaxData':
case 'stackTraceMaxChildren':
case 'stackTraceMaxDepth':
if ( ( !is_int( $propertyValue ) ||
$propertyValue <
0 ) &&
( $propertyValue !==
false ) )
$this->properties[$propertyName] =
$propertyValue;