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

method naming changes #25

Closed
chajr opened this issue Oct 15, 2014 · 0 comments
Closed

method naming changes #25

chajr opened this issue Oct 15, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@chajr
Copy link
Owner

chajr commented Oct 15, 2014

change name of some methods to remove prefix used to handle data by magic methods

@chajr chajr added the change label Oct 15, 2014
@chajr chajr self-assigned this Oct 15, 2014
@chajr chajr added this to the version 0.2.0 milestone Oct 15, 2014
chajr added a commit that referenced this issue Oct 15, 2014
This version introduces multiple enhancements:

changed some methods name to remove prefixes used for magic methods
added new magic method `restore` to restore data for given key
added some features to handle data set and get preparation
refactored some methods to manage class array variables

Details of additions/deletions below:
--------------------------------------------------------------

Modified:   examples/base_object/data_validation.php
            -- Updated --
                method naming

Modified:   examples/base_object/replace_data.php
            -- Updated --
                method naming

Modified:   Base/BlueObject.php
            -- Added --
                $_dataPreparationCallbacks list of callbacks to prepare data before insert into object
                $_dataRetrieveCallbacks list of callbacks to prepare data before return from object
                _genericPut
                _genericDestroy
                _genericReturn
                _getCorrectList return name of data list variable for given data type
                putPreparationCallback
                destroyPreparationCallback
                returnPreparationCallback
                putReturnCallback
                destroyReturnCallback
                returnReturnCallback
            -- Updated --
                __call added restore magic method
                hasErrors renamed to checkErrors
                getObjectError renamed to returnObjectError and logic moved to _genericReturn method
                clearObjectError renamed to removeObjectError and logic moved to _genericDestroy method
                getOriginalData renamed to returnOriginalData
                hasDataChanged renamed to dataChanged
                keyDataChanged used method rename
                putValidationRule logic moved to _genericPut
                destroyValidationRule moved to _genericDestroy
                returnValidationRule moved to _genericReturn
@chajr chajr closed this as completed Oct 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant