L
L
Lexxtor2021-01-08 14:17:21
PHP
Lexxtor, 2021-01-08 14:17:21

What classes should be in the news CRUD test?

We were asked to make an admin panel with CRUD news and a user with a list and view of each news.
Frameworks were forbidden to take. List what classes you need to create (parent and child)?
Maybe some PSR interfaces need to be implemented?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey Gornostaev, 2021-01-08
@sergey-gornostaev

There should be classes that show your knowledge of OOP and the ability to complete the task.

L
Lazy @BojackHorseman PHP, 2021-01-08
Tag

frameworks are not for those who do not know how to do it differently... but for those whose time is expensive to implement a framework every time.
I understand that it didn't even occur to you to offer a self-written frame of your favorite fv in the test task?

A
Anton R., 2021-01-08
@anton_reut

News class for a single news item, methods:
- getNews
- addNews
- editNews
- deleteNews NewsList
class for a news list, methods:
- getNewsList
...eg.

D
Daria Motorina, 2021-01-09
@glaphire

In fact, this task will differ from the task on the framework in that you need to create your own base classes for routing, authorization, models and controllers. It's just that it will be 5 times more simplified compared to the framework - without abstractions for every sneeze) well, or use packages for some tasks - beautiful routing from scratch is not so easy to write

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question