Skip to content

Object orientation #3

Description

@j6s

Wrapping ophir in a class and giving it a namespace would fit more modern workflows.

I am bringing this up as a ticket, because it will change how Ophir works. The code in the readme would then look something like this:

use \lovasoa\Ophir

$ophir = new Ophir();

$ophir->setFootnote(0);
$ophir->setAnnotation(0);

$ophir->setList(1);
$ophir->setLink(1);

echo $ophir->odt2html("/path/to/file.odt");

This would make handling Ophir a lot easier, since it is a object and not a loose Bunch of functions. It is a rather big step to take but i think it is worth it (plus you get super cool Autoloading by Composer)

In my mind it only brings advantages (let alone breaking things, that rely on the old version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions