Fix property declaration
This commit is contained in:
parent
c6f9baf78c
commit
3d61d003bc
@ -38,13 +38,13 @@ if (!defined('STATUSNET')) {
|
|||||||
* $phone1 = new Profile_detail();
|
* $phone1 = new Profile_detail();
|
||||||
* $phone1->field_name = 'phone_number';
|
* $phone1->field_name = 'phone_number';
|
||||||
* $phone1->rel = 'home';
|
* $phone1->rel = 'home';
|
||||||
* $phone1->value = '510-384-1992';
|
* $phone1->field_value = '510-384-1992';
|
||||||
* $phone1->value_index = 1;
|
* $phone1->value_index = 1;
|
||||||
*
|
*
|
||||||
* $phone1 = new Profile_detail();
|
* $phone1 = new Profile_detail();
|
||||||
* $phone1->field_name = 'phone_number';
|
* $phone1->field_name = 'phone_number';
|
||||||
* $phone1->rel = 'mobile';
|
* $phone1->rel = 'mobile';
|
||||||
* $phone1->value = '510-719-1139';
|
* $phone1->field_value = '510-719-1139';
|
||||||
* $phone1->value_index = 2;
|
* $phone1->value_index = 2;
|
||||||
*
|
*
|
||||||
* $phone1 = new Profile_detail();
|
* $phone1 = new Profile_detail();
|
||||||
@ -62,7 +62,7 @@ class Profile_detail extends Managed_DataObject
|
|||||||
public $profile_id; // profile this is for
|
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 $rel; // detail for some field types; eg "home", "mobile", "work" for phones or "aim", "irc", "xmpp" for IM
|
||||||
public $field_name; // name
|
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 $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 $ref_profile; // for people types, allows pointing to a known profile in the system
|
||||||
public $created;
|
public $created;
|
||||||
@ -131,7 +131,7 @@ class Profile_detail extends Managed_DataObject
|
|||||||
),
|
),
|
||||||
'primary key' => array('id'),
|
'primary key' => array('id'),
|
||||||
'unique keys' => array(
|
'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'),
|
=> array('profile_id', 'field_name', 'value_index'),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -37,6 +37,7 @@ class ExtendedProfile
|
|||||||
$this->user = $profile->getUser();
|
$this->user = $profile->getUser();
|
||||||
$this->sections = $this->getSections();
|
$this->sections = $this->getSections();
|
||||||
$this->fields = $this->loadFields();
|
$this->fields = $this->loadFields();
|
||||||
|
common_debug(var_export($this->fields, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user