Title: User Object Framework
Author: Jennifer M. Dodd
Published: <strong>ಅಕ್ಟೋಬರ್ 1, 2012</strong>
Last modified: ಅಕ್ಟೋಬರ್ 1, 2012

---

ಪ್ಲಗಿನ್‌ಗಳನ್ನು ಹುಡುಕಿ

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/user-object-framework.svg)

# User Object Framework

 ‍[Jennifer M. Dodd](https://profiles.wordpress.org/jmdodd/) ಮೂಲಕ

[ಡೌನ್ಲೋಡ್](https://downloads.wordpress.org/plugin/user-object-framework.0.1.zip)

 * [ವಿವರಗಳು](https://kn.wordpress.org/plugins/user-object-framework/#description)
 * [‍ವಿಮರ್ಶೆಗಳು‍](https://kn.wordpress.org/plugins/user-object-framework/#reviews)
 *  [ಸ್ಥಾಪನೆ](https://kn.wordpress.org/plugins/user-object-framework/#installation)
 * [ಅಭಿವೃದ್ಧಿ](https://kn.wordpress.org/plugins/user-object-framework/#developers)

 [ಬೆಂಬಲ](https://wordpress.org/support/plugin/user-object-framework/)

## ವಿವರಣೆ

This plugin creates a user-object relationship table and a user-object relationship
metadata
 table. Relationships between a user (logged-in or IP) are created and 
added to the relationship table; metadata (ex. votes, flags, and ratings) is attached
to that particular relationship via the metadata table. This is a framework; it 
is intended for use in voting, flagging, and similar user applications where a user-
affiliated metadata is attached to an object. Supported object tables include wp_posts,
wp_comments, wp_users, and wp_bp_activity.

Functions are provided to add/get/delete relationships; metadata is added via the
native WordPress
 metadata-handling functions. Functions provided by this framework
include:

 * `ucc_uof_object_reference()` returns an array of object-integer assignments. 
   Use this to look up the
    appropriate value for $object_ref based on the object
   table (wp_posts, wp_comments, wp_users, wp_bp_activity are currently supported)
   to which you are attaching a user relationship.
 * `ucc_uof_add_relationship( $user_id = 0, $user_ip = 0, $object_id, $object_ref)`
   adds a relationship
    to the relationship table if none exists and returns the
   relationship id for that user/object pairing.
 * `ucc_uof_delete_relationship( $user_id = 0, $user_ip = 0, $object_id, $object_ref)`
   will delete a
    relationship if there are no metadata entries left for that relationship.
 * `ucc_uof_get_relationship()` returns the relationship id for that user/object
   pairing.
 * `ucc_uof_get_user_id()` returns the current user id or 0 if not logged in.
 * `ucc_uof_get_user_ip()` returns 0 if the current user is logged in, or an ip2long()
   if anonymous.

Example code:

    ```
    // Create or get the user-object relationship.
    $relationship = ucc_uof_get_relationship( $user_id, $user_ip, $object_id, $object_ref );
    if ( empty( $relationship ) )
        $relationship = ucc_uof_add_relationship( $user_id, $user_ip, $object_id, $object_ref );

    // Add user_object_meta.
    if ( $mode == 'delete' )
        delete_metadata( 'uof_user_object', $relationship, '_your_meta_key' );
    else
        update_metadata( 'uof_user_object', $relationship, '_your_meta_key', 'your meta key value' );
    ```

## ಸ್ಥಾಪನೆ

 1. Upload the directory `user-object-framework` and its contents to the `/wp-content/
    plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## ‍ವಿಮರ್ಶೆಗಳು‍

ಈ ಪ್ಲಗಿನ್‌ಗೆ ಯಾವುದೇ ವಿಮರ್ಶೆಗಳಿಲ್ಲ.

## ಕೊಡುಗೆದಾರರು & ಡೆವಲಪರ್‌ಗಳು

“User Object Framework” ಓಪನ್ ಸೋರ್ಸ್ ಸಾಫ್ಟ್‌ವೇರ್ ಆಗಿದೆ. ಕೆಳಗಿನ ಜನರು ಈ ಪ್ಲಗಿನ್‌ಗೆ 
ಕೊಡುಗೆ ನೀಡಿದ್ದಾರೆ.

ಕೊಡುಗೆದಾರರು

 *   [ Jennifer M. Dodd ](https://profiles.wordpress.org/jmdodd/)

[“User Object Framework” ಅನ್ನು ನಿಮ್ಮ ಭಾಷೆಗೆ ಅನುವಾದಿಸಿ.](https://translate.wordpress.org/projects/wp-plugins/user-object-framework)

### ಅಭಿವೃದ್ಧಿಯಲ್ಲಿ ಆಸಕ್ತಿ ಇದೆಯೇ?

[ಕೋಡ್ ಬ್ರೌಸ್ ಮಾಡಿ](https://plugins.trac.wordpress.org/browser/user-object-framework/),
[SVN ರೆಪೊಸಿಟರಿ](https://plugins.svn.wordpress.org/user-object-framework/) ಪರಿಶೀಲಿಸಿ,
ಅಥವಾ [ಅಭಿವೃದ್ಧಿ ಲಾಗ್](https://plugins.trac.wordpress.org/log/user-object-framework/)
ಗೆ [RSS](https://plugins.trac.wordpress.org/log/user-object-framework/?limit=100&mode=stop_on_copy&format=rss)
ಚಂದಾದಾರರಾಗಿ.

## Changelog

#### 0.1

 * Initial release.

## ಮೆಟಾ

 *  Version **0.1**
 *  ಕೊನೆಯದಾಗಿ ನವೀಕರಿಸಿದ್ದು **14 ವರ್ಷಗಳು ರ ಮುನ್ನ**
 *  ಸಕ್ರಿಯ ಸ್ಥಾಪನೆಗಳು **10 ಕ್ಕಿಂತ ಕಡಿಮೆ**
 *  ವರ್ಡ್ಪ್ರೆಸ್ ಆವೃತ್ತಿ ** 3.4 ಅಥವಾ ಹೆಚ್ಚಿನದು **
 *  **3.4.2** ವರೆಗೆ ಪರೀಕ್ಷಿಸಲಾಗಿದೆ
 *  Language
 * [English (US)](https://wordpress.org/plugins/user-object-framework/)
 * ಟ್ಯಾಗ್‌ಗಳು
 * [framework](https://kn.wordpress.org/plugins/tags/framework/)[metadata](https://kn.wordpress.org/plugins/tags/metadata/)
   [object](https://kn.wordpress.org/plugins/tags/object/)[relationship](https://kn.wordpress.org/plugins/tags/relationship/)
   [user](https://kn.wordpress.org/plugins/tags/user/)
 *  [ಸುಧಾರಿತ ನೋಟ](https://kn.wordpress.org/plugins/user-object-framework/advanced/)

## ರೇಟಿಂಗ್‌ಗಳು

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/user-object-framework/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/user-object-framework/reviews/)

## ಕೊಡುಗೆದಾರರು

 *   [ Jennifer M. Dodd ](https://profiles.wordpress.org/jmdodd/)

## ಬೆಂಬಲ

ಹೇಳಲು ಏನಾದರೂ ಸಿಕ್ಕಿದೆಯೇ? ಸಹಾಯ ಬೇಕೇ?

 [ಬೆಂಬಲ ವೇದಿಕೆಯನ್ನು ವೀಕ್ಷಿಸಿ](https://wordpress.org/support/plugin/user-object-framework/)