]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix property declaration
authorZach Copley <zach@status.net>
Thu, 10 Mar 2011 02:16:02 +0000 (18:16 -0800)
committerZach Copley <zach@status.net>
Thu, 10 Mar 2011 02:16:02 +0000 (18:16 -0800)
plugins/ExtendedProfile/Profile_detail.php
plugins/ExtendedProfile/extendedprofile.php

index ebbeb86054b87a90ea0d4103fbc208aefa3b79af..f9f4d00098eee17f440285977f3cc4a5b1b02408 100644 (file)
@@ -38,13 +38,13 @@ if (!defined('STATUSNET')) {
  *     $phone1 = new Profile_detail();
  *     $phone1->field_name  = 'phone_number';
  *     $phone1->rel         = 'home';
- *     $phone1->value       = '510-384-1992';
+ *     $phone1->field_value = '510-384-1992';
  *     $phone1->value_index = 1;
  *
  *     $phone1 = new Profile_detail();
  *     $phone1->field_name  = 'phone_number';
  *     $phone1->rel         = 'mobile';
- *     $phone1->value       = '510-719-1139';
+ *     $phone1->field_value = '510-719-1139';
  *     $phone1->value_index = 2;
  *
  *     $phone1 = new Profile_detail();
@@ -62,7 +62,7 @@ class Profile_detail extends Managed_DataObject
     public $profile_id;  // profile this is for
     public $rel;         // detail for some field types; eg "home", "mobile", "work" for phones or "aim", "irc", "xmpp" for IM
     public $field_name;  // name
-    public $value;       // primary text value
+    public $field_value; // primary text value
     public $value_index; // relative ordering of multiple values in the same field
     public $ref_profile; // for people types, allows pointing to a known profile in the system
     public $created;
@@ -131,7 +131,7 @@ class Profile_detail extends Managed_DataObject
             ),
             'primary key' => array('id'),
             'unique keys' => array(
-                'profile_detial_profile_id_field_name_value_index'
+                'profile_detail_profile_id_field_name_value_index'
                     => array('profile_id', 'field_name', 'value_index'),
             )
         );
index 5731c808aeb8e2244a3b4b0a76feabfaa287b648..43f5b55b9cf22049c22d3bd8dcc4a6bd29a73f9a 100644 (file)
@@ -37,6 +37,7 @@ class ExtendedProfile
         $this->user     = $profile->getUser();
         $this->sections = $this->getSections();
         $this->fields   = $this->loadFields();
+        common_debug(var_export($this->fields, true));
     }
 
     /**