/** * Load the social we're adding/editing and returns its values as an array * If this is a new social, set some defaults */ public function getSocial() { // Load the walk if not already done if (!isset($this->social)) { $this->loadSocial(JRequest::getInt("socialid", 0, "get")); } return $this->social->valuesToForm(); }