function __construct($sha1 = '') { parent::__construct(); $this->data = $sha1; }
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(); }