/** * External Alias Update method * * This method updates the passed section object's attributes using * the passed values. * * @param array $values The data received from the form submission * @param object $object The section object to update * * @return object The updated section object. */ static function updateExternalAlias($values, $object) { $object = section::_updateCommon($values, $object); $object->active = 1; $object->public = isset($values['public']) ? 1 : 0; $object->alias_type = 1; $object->external_link = $values['external_link']; if (!expCore::URLisValid($object->external_link)) { $object->external_link = 'http://' . $object->external_link; } return $object; }