function __construct($file = null, $mode = \IO\Stream\Mode::Read) { if (is_string($file)) { $file = new \IO\File($file); } parent::__construct($file, $mode); }
function __construct(Database $database, array $params = array()) { $this->Database = $database; parent::__construct($params); }