From: Brion Vibber Date: Thu, 3 Feb 2011 01:29:34 +0000 (-0800) Subject: work in progress: prepping for storage of extended profile details X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1a96dc7afe487b4adf757b75f7060ff767609ad;p=quix0rs-gnu-social.git work in progress: prepping for storage of extended profile details --- diff --git a/plugins/ExtendedProfile/Profile_detail.php b/plugins/ExtendedProfile/Profile_detail.php new file mode 100644 index 0000000000..ae8cdcee50 --- /dev/null +++ b/plugins/ExtendedProfile/Profile_detail.php @@ -0,0 +1,16 @@ +profile = $profile; + $this->sections = $this->getSections(); + $this->fields = $this->loadFields(); + } + + function loadFields() + { + $detail = new Profile_detail(); + $detail->profile_id = $this->profile->id; + $detail->find(); + + while ($detail->get()) { + $fields[$detail->field][] = clone($detail); + } + return $fields; + } + function getSections() { return array(