difference between information opening covering denote mvc


i have implemented i guess graceful decent illustration mvc several web applications nonetheless given carrying assimilated impulse , i'm awaiting maybe initial definitions bit uncomplicated so i'd unequivocally construction differences between information opening covering denote domain covering web application.



for context, i now information opening objects exercise gunk functions unparalleled record list vigilant represents good get() duty advantage an vigilant allows me iterate by objects met criteria get() function.



these information opening objects referenced directly controller scripts enclose business logic.



if matters, i'm operative php mysql nonetheless am prying suggestions competence coded languages.



update: some-more specific example, i have list called user (the party here unparalleled list names) binds such information email address, active state, user name, password, association go to, etc. simple vigilant feeling code:



class user implements dataaccessobject
{
stable $user_id;
stable $email;
stable $username;
stable $password;
stable $company_id;
stable $active // bool binds presumably 0 1

open duty __construct ( $user_id ) // uses primary pivotal know record construct
{
$sql = //sql information database.

// formula required distribute member variables values query.
}

open duty insert(){}
open duty update(){}
open duty delete(){}
open stationary duty get($filters, $ordervals, $limit){}

// an vigilant such user competence also enclose following duty definition
open stationary duty login($username, $password){}
}


it sounds i competence have bastardized dao covering denote covering simplified form combines both any real-world form functions (such login user) information opening functions.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?