Horde_Text_Diff_Renderer::__construct PHP 메소드

__construct() 공개 메소드

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

예제 #1
0
파일: Character.php 프로젝트: Jony01/LLD
 public function __construct($context_lines = 0)
 {
     parent::__construct();
     $this->_leading_context_lines = $context_lines;
     $this->_trailing_context_lines = $context_lines;
     $this->orig = "";
     $this->final = "";
 }