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

Support manipulating users #2

Merged
merged 8 commits into from
May 27, 2014
Merged

Support manipulating users #2

merged 8 commits into from
May 27, 2014

Conversation

danielbachhuber
Copy link
Member

No description provided.

@danielbachhuber danielbachhuber added this to the 1.0 milestone May 7, 2014
* @package WordPress API Client
* @subpackage Entities
*/
class WPAPI_User {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmccue What do you think about having this and WPAPI_Post extend a WPAPI_Entity class?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, but should be called Object rather than Entity for consistency with core.

On Wed, May 7, 2014 at 10:48 AM, Daniel Bachhuber
notifications@github.com wrote:

@@ -0,0 +1,68 @@
+<?php
+
+/**

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. And is there a reason you went with interface over abstract class for collections? I think the former will lead to a bunch of duplicate code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add a base class (Collection_Base) as well, but interfaces should be used to represent interfaces. Means we separate the implementation from the interface.

On Wed, May 7, 2014 at 10:52 AM, Daniel Bachhuber
notifications@github.com wrote:

@@ -0,0 +1,68 @@
+<?php
+
+/**

  • * User entity object
  • * @Package WordPress API Client
  • * @subpackage Entities
  • */
    +class WPAPI_User {
    Ok. And is there a reason you went with interface over abstract class for collections? I think the former will lead to a bunch of duplicate code

    Reply to this email directly or view it on GitHub:
    https://github.com/WP-API/client-php/pull/2/files#r12357765

rmccue added a commit that referenced this pull request May 27, 2014
Support manipulating users
@rmccue rmccue merged commit 105f2b9 into master May 27, 2014
@rmccue rmccue deleted the users branch May 27, 2014 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants