Prado\Web\UI\TControl::traverseChildControls PHP Метод

traverseChildControls() защищенный Метод

Callback function may be invoked for each control being visited. A pre-callback is invoked before traversing child controls; A post-callback is invoked after traversing child controls. Callback functions can be global functions or class methods. They must be of the following signature: function callback_func($control,$param) {...} where $control refers to the control being visited and $param is the parameter that is passed originally when calling this traverse function.
protected traverseChildControls ( $param, $preCallback = null, $postCallback = null )
    protected function traverseChildControls($param, $preCallback = null, $postCallback = null)
    {
        if ($preCallback !== null) {
            call_user_func($preCallback, $this, $param);
        }
        if ($this->getHasControls()) {
            foreach ($this->_rf[self::RF_CONTROLS] as $control) {
                if ($control instanceof TControl) {
                    $control->traverseChildControls($param, $preCallback, $postCallback);
                }
            }
        }
        if ($postCallback !== null) {
            call_user_func($postCallback, $this, $param);
        }
    }
TControl