GithubHelp home page GithubHelp logo

appsfuel / atk4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atk4/atk4

1.0 1.0 2.0 10.68 MB

Agile Toolkit is a PHP framework for developing Powerful Web Applications. Inspired by Desktop Toolkits (QT, Cocoa, .NET) it provides clever web application framework for developers with any skill level. Agile Toolkit free for open-source projects and has commercial support.

Home Page: http://agiletoolkit.org/

License: GNU Affero General Public License v3.0

PHP 74.62% CSS 17.54% JavaScript 7.83% Shell 0.01%

atk4's People

Contributors

agilestas avatar borderlessnomad avatar cordje avatar darkside666 avatar gowrav-vishwakarma avatar gsteenss avatar kgordeev avatar oleksiiostapets avatar romaninsh avatar rvadym avatar theelter avatar twjnorth avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

omons omone

atk4's Issues

Model addCondition sanitize parameters

I'd like to sanitize the parameters into the model class not in the controller. It's be better to uniform the interface between model and controller.

Model/Controller_Data class design

Should the Data_Controller be stateless or not?

Actually it seems that this is the desired design, so a controller can act and the model stores the actual state of the data (that could also lead to reuse the same instance of the controller on multiple models).

Need to known it for sure! :)

Controller_data save

The model passes the id parameter to the controller to know if you are saving or updating a row. The save method of Controller_Data was wrong.

Model dirty field after save

I think the dirty array should be erase after the saving.
I the dirty fields represent the differents between the model data and the source (like db) after the save, the dirty array should be empty

Model countable

The model class is already iterable. The method count in model already exists. Why shouldn't model implement this interface?

Using tryLoad and Load

In the load method of the Model there's a call to load method of the controller. In the tryLoad method of the Model there's a call to tryLaod method of the controller. Why don't uniform this?
I suggest to use only tryLoad controller's method

Controller_Data unused method

Remove the following methods:
getBy($model,$field,$cond,$value);
getRows($model);
loadBy($model,$field,$cond,$value);

Serilize/Unserialize the Model

Those methods should be used to serialize and unserialize a model, but the serialization don't store the type of the controller and the other members (like conditions)

Are we sure to serialize a model?

Uniform Model load hooks

Actually the load hooks are a mess, some kind of load have an hook othesrs have different hook, others have no hook at all.

Instead of having different hooks on each kind of load (load,loadBy, loadAny) we can use a single kind of hook with the first parameter that specify the kind of load and eventually the other parameters as array exacly like the load method signature.

That can uniformate the "beforeLoad" part.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.