| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
/**
* @param array $params
*/
- static function fixAndStoreDirAndURL(&$params) {
+ public static function fixAndStoreDirAndURL(&$params) {
$sql = "
SELECT v.name as valueName, g.name as optionName
FROM civicrm_option_value v,
$dirParams = array();
$urlParams = array();
- $dao = CRM_Core_DAO::executeQuery($sql);
+ $dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
if (!isset($params[$dao->valueName])) {
continue;
* @param array $params
* @param string $type
*/
- static function storeDirectoryOrURLPreferences(&$params, $type = 'directory') {
+ public static function storeDirectoryOrURLPreferences(&$params, $type = 'directory') {
$optionName = ($type == 'directory') ? 'directory_preferences' : 'url_preferences';
$sql = "
else {
$value = CRM_Utils_System::relativeURL($value);
}
- $sqlParams = array(1 => array($value, 'String'),
+ $sqlParams = array(
+ 1 => array($value, 'String'),
2 => array($optionName, 'String'),
3 => array($name, 'String'),
);
* @param array $params
* @param bool $setInConfig
*/
- static function retrieveDirectoryAndURLPreferences(&$params, $setInConfig = FALSE) {
+ public static function retrieveDirectoryAndURLPreferences(&$params, $setInConfig = FALSE) {
if ($setInConfig) {
$config = CRM_Core_Config::singleton();
}
AND v.is_active = 1
";
-
$dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
if (!$dao->value) {
}
}
}
-}
+}