HeadFilter::_initialize PHP Method

_initialize() private method

Scans the parameters list for the "lines" parameter and uses it to set the number of lines to be returned in the filtered stream.
private _initialize ( )
    private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            for ($i = 0, $_i = count($params); $i < $_i; $i++) {
                if (self::LINES_KEY == $params[$i]->getName()) {
                    $this->_lines = (int) $params[$i]->getValue();
                    break;
                }
            }
        }
    }