__construct() public method

public __construct ( $data = NULL )
示例#1
0
 function __construct($sha1 = '')
 {
     parent::__construct();
     $this->data = $sha1;
 }
示例#2
0
 function __construct($data = NULL, $opt = array())
 {
     parent::__construct();
     $this->data = $data;
     $this->format = $opt['format'] ? $opt['format'] : 'b';
     $this->filename = $opt['filename'] ? $opt['filename'] : 'data';
     $this->timestamp = $opt['timestamp'] ? $opt['timestamp'] : time();
 }