getPath() . '/profiles'; } if (! isset($params['cache']) || $params['cache'] != 'n') { $cachelib = TikiLib::lib('cache'); $cacheType = 'profilesymbolval'; $cacheName = $ref . '-' . $profile . '-' . $domain; if ($cachelib->isCached($cacheName, $cacheType)) { return $cachelib->getCached($cacheName, $cacheType); } } if (empty($domain) && empty($profile)) { $result = TikiLib::lib('tiki')->table('tiki_profile_symbols')->fetchOne('value', ['object' => $ref]); } elseif (empty($domain)) { $result = TikiLib::lib('tiki')->table('tiki_profile_symbols')->fetchOne('value', ['object' => $ref, 'profile' => $profile]); } else { $result = TikiLib::lib('tiki')->table('tiki_profile_symbols')->fetchOne('value', ['object' => $ref, 'profile' => $profile, 'domain' => $domain]); } if ($result) { if (! isset($params['cache']) || $params['cache'] != 'n') { $cachelib->cacheItem($cacheName, $result, $cacheType); } return $result; } else { return ''; } }