Hey all,
I would just like to grab a few opinions, a bit of feedback on the following class structure, is it any good? 😕 I know it is basic but is it a good base for extending? I plan to have a News_Validator class as well for screening input.
The - in_news_title etc. indicate method arguments.
Class:
News_Manager
no attributes
no set constructor
create_news()
- in_news_title
- in_news_category
- in_news_content
return true
update_news()
- in_news_id
- in_news_title
- in_news_category
- in_news_content
return true
delete_news()
- in_news_id
return true
get_news_article()
- in_news_id
return array()
get_all_news()
return array()