Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create field formatting mechanism #15

Open
gabteles opened this issue Dec 5, 2015 · 1 comment
Open

Create field formatting mechanism #15

gabteles opened this issue Dec 5, 2015 · 1 comment
Milestone

Comments

@gabteles
Copy link
Collaborator

gabteles commented Dec 5, 2015

Fields not always should be displayed as they are in the database. Field formatters will receive an input from DB and process it to show as it should be in the interface.

Create:

  • TotalFlex\Interfaces\IFieldFormatter
  • TotalFlex\FieldFormatter\DateFromUnixtimestamp as a POC. It should receive an format (see strftime function formats) to instanciate it, a unix timestamp as input and should output a string in the corresponding format for the unix timestamp.
@gabteles gabteles added this to the 1.0.0 milestone Dec 5, 2015
@hugoofab
Copy link
Owner

hugoofab commented Dec 9, 2015

what do you think about strip out "I" prefix from interface names? Once it already is saved on "Interfaces" Folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants