Horde_Text_Diff_Renderer::__construct PHP Method

__construct() public method

Constructor.
public __construct ( $params = [] )
    public function __construct($params = array())
    {
        foreach ($params as $param => $value) {
            $v = '_' . $param;
            if (isset($this->{$v})) {
                $this->{$v} = $value;
            }
        }
    }

Usage Example

Ejemplo n.º 1
0
 public function __construct($context_lines = 0)
 {
     parent::__construct();
     $this->_leading_context_lines = $context_lines;
     $this->_trailing_context_lines = $context_lines;
     $this->orig = "";
     $this->final = "";
 }