本文整理汇总了PHP中umiHierarchy::compareStrings方法的典型用法代码示例。如果您正苦于以下问题:PHP umiHierarchy::compareStrings方法的具体用法?PHP umiHierarchy::compareStrings怎么用?PHP umiHierarchy::compareStrings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类umiHierarchy
的用法示例。
在下文中一共展示了umiHierarchy::compareStrings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIdByPath
public function getIdByPath($v84d8c2148d233e7430fceb3f20ae3314, $vda936bf93b2dd512e0554fd9eb7b4120 = false, &$v3dbd53d892aaea70c9f5fefc18fc7e4c = 0, $v662cbf1253ac7d8750ed9190c52163e5 = false, $v78e6dd7a49f5b0cb2106a3a434dd5c86 = false)
{
$v78e6dd7a49f5b0cb2106a3a434dd5c86 = (int) $v78e6dd7a49f5b0cb2106a3a434dd5c86;
$v662cbf1253ac7d8750ed9190c52163e5 = (int) $v662cbf1253ac7d8750ed9190c52163e5;
if ($v5f44c555cfb3ecb28f624fa95617f277 = mainConfiguration::getInstance()->get('seo', 'url-suffix')) {
$v5e0bdcbddccca4d66d74ba8c1cee1a68 = strrpos($v84d8c2148d233e7430fceb3f20ae3314, $v5f44c555cfb3ecb28f624fa95617f277);
if ($v5e0bdcbddccca4d66d74ba8c1cee1a68 && $v5e0bdcbddccca4d66d74ba8c1cee1a68 + strlen($v5f44c555cfb3ecb28f624fa95617f277) == strlen($v84d8c2148d233e7430fceb3f20ae3314)) {
$v84d8c2148d233e7430fceb3f20ae3314 = substr($v84d8c2148d233e7430fceb3f20ae3314, 0, $v5e0bdcbddccca4d66d74ba8c1cee1a68);
}
}
$v84d8c2148d233e7430fceb3f20ae3314 = trim($v84d8c2148d233e7430fceb3f20ae3314, "\\/ \n");
$v8b1dc169bf460ee884fceef66c6607d6 = cmsController::getInstance();
if (empty($v78e6dd7a49f5b0cb2106a3a434dd5c86)) {
$v78e6dd7a49f5b0cb2106a3a434dd5c86 = $v8b1dc169bf460ee884fceef66c6607d6->getCurrentLang()->getId();
}
if (empty($v662cbf1253ac7d8750ed9190c52163e5)) {
$v662cbf1253ac7d8750ed9190c52163e5 = $v8b1dc169bf460ee884fceef66c6607d6->getCurrentDomain()->getId();
}
$v143e21b64126735544d3142d33aa4bbe = md5($v662cbf1253ac7d8750ed9190c52163e5 . ":" . $v78e6dd7a49f5b0cb2106a3a434dd5c86 . ":" . $v84d8c2148d233e7430fceb3f20ae3314);
if (isset($this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe])) {
return $this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe];
}
$vb99eb979e6f6efabc396f777b503f7e7 = cacheFrontend::getInstance();
if ($vb80bb7740288fda1f201890375a60c8f = $vb99eb979e6f6efabc396f777b503f7e7->loadSql($v143e21b64126735544d3142d33aa4bbe . "_path")) {
return $vb80bb7740288fda1f201890375a60c8f;
}
if ($v84d8c2148d233e7430fceb3f20ae3314 == "") {
return $this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe] = $this->getDefaultElementId($v78e6dd7a49f5b0cb2106a3a434dd5c86, $v662cbf1253ac7d8750ed9190c52163e5);
}
$ve4e46deb7f9cc58c7abfb32e5570b6f3 = domainsCollection::getInstance();
$v13872c0118a4316afd1e99295017d654 = explode("/", $v84d8c2148d233e7430fceb3f20ae3314);
$v7dabf5c198b0bab2eaa42bb03a113e55 = sizeof($v13872c0118a4316afd1e99295017d654);
$vb80bb7740288fda1f201890375a60c8f = 0;
for ($v865c0c0b4ab0e063e5caa3387c1a8741 = 0; $v865c0c0b4ab0e063e5caa3387c1a8741 < $v7dabf5c198b0bab2eaa42bb03a113e55; $v865c0c0b4ab0e063e5caa3387c1a8741++) {
$vd84ff935144e00c3e1d395c2379aca47 = $v13872c0118a4316afd1e99295017d654[$v865c0c0b4ab0e063e5caa3387c1a8741];
$vd84ff935144e00c3e1d395c2379aca47 = l_mysql_real_escape_string($vd84ff935144e00c3e1d395c2379aca47);
if ($v865c0c0b4ab0e063e5caa3387c1a8741 == 0) {
if ($v3c2d776e82f7716166c1c2183822a04b = $ve4e46deb7f9cc58c7abfb32e5570b6f3->getDomainId($vd84ff935144e00c3e1d395c2379aca47)) {
$v662cbf1253ac7d8750ed9190c52163e5 = $v3c2d776e82f7716166c1c2183822a04b;
continue;
}
}
if ($vda936bf93b2dd512e0554fd9eb7b4120) {
$vac5c74b64b4b8352ef2f181affb5ac2a = "SELECT id FROM cms3_hierarchy WHERE rel = '{$vb80bb7740288fda1f201890375a60c8f}' AND alt_name = '{$vd84ff935144e00c3e1d395c2379aca47}' AND lang_id = '{$v78e6dd7a49f5b0cb2106a3a434dd5c86}' AND domain_id = '{$v662cbf1253ac7d8750ed9190c52163e5}'";
} else {
$vac5c74b64b4b8352ef2f181affb5ac2a = "SELECT id FROM cms3_hierarchy WHERE rel = '{$vb80bb7740288fda1f201890375a60c8f}' AND alt_name = '{$vd84ff935144e00c3e1d395c2379aca47}' AND is_active='1' AND is_deleted = '0' AND lang_id = '{$v78e6dd7a49f5b0cb2106a3a434dd5c86}' AND domain_id = '{$v662cbf1253ac7d8750ed9190c52163e5}'";
}
$result = l_mysql_query($vac5c74b64b4b8352ef2f181affb5ac2a);
if (!mysql_num_rows($result)) {
if ($vda936bf93b2dd512e0554fd9eb7b4120) {
$vac5c74b64b4b8352ef2f181affb5ac2a = "SELECT id, alt_name FROM cms3_hierarchy WHERE rel = '{$vb80bb7740288fda1f201890375a60c8f}' AND lang_id = '{$v78e6dd7a49f5b0cb2106a3a434dd5c86}' AND domain_id = '{$v662cbf1253ac7d8750ed9190c52163e5}'";
} else {
$vac5c74b64b4b8352ef2f181affb5ac2a = "SELECT id, alt_name FROM cms3_hierarchy WHERE rel = '{$vb80bb7740288fda1f201890375a60c8f}' AND is_active = '1' AND is_deleted = '0' AND lang_id = '{$v78e6dd7a49f5b0cb2106a3a434dd5c86}' AND domain_id = '{$v662cbf1253ac7d8750ed9190c52163e5}'";
}
$result = l_mysql_query($vac5c74b64b4b8352ef2f181affb5ac2a);
$v2ffe4e77325d9a7152f7086ea7aa5114 = 0;
$vb6b6e66c9db093b3c4c8800ac9365830 = 0;
$v1a1cc17b4341344c0ceec516de628da3 = 0;
while (list($vb6b6e66c9db093b3c4c8800ac9365830, $v423b21e5932f11b123a1ddb35654b51b) = mysql_fetch_row($result)) {
if ($this->autocorrectionDisabled) {
if ($vd84ff935144e00c3e1d395c2379aca47 == $v423b21e5932f11b123a1ddb35654b51b) {
$v1a1cc17b4341344c0ceec516de628da3 = $vb6b6e66c9db093b3c4c8800ac9365830;
}
} else {
$v3d801aa532c1cec3ee82d87a99fdf63f = umiHierarchy::compareStrings($vd84ff935144e00c3e1d395c2379aca47, $v423b21e5932f11b123a1ddb35654b51b);
if ($v3d801aa532c1cec3ee82d87a99fdf63f > $v2ffe4e77325d9a7152f7086ea7aa5114) {
$v2ffe4e77325d9a7152f7086ea7aa5114 = $v3d801aa532c1cec3ee82d87a99fdf63f;
$v1a1cc17b4341344c0ceec516de628da3 = $vb6b6e66c9db093b3c4c8800ac9365830;
++$v3dbd53d892aaea70c9f5fefc18fc7e4c;
}
}
}
if ($v2ffe4e77325d9a7152f7086ea7aa5114 > 75) {
$vb80bb7740288fda1f201890375a60c8f = $v1a1cc17b4341344c0ceec516de628da3;
} else {
return $this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe] = false;
}
} else {
if (!(list($vb80bb7740288fda1f201890375a60c8f) = mysql_fetch_row($result))) {
return $this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe] = false;
}
}
}
$vb99eb979e6f6efabc396f777b503f7e7->saveSql($v143e21b64126735544d3142d33aa4bbe . "_path", $vb80bb7740288fda1f201890375a60c8f, 3600);
return $this->idByPathCache[$v143e21b64126735544d3142d33aa4bbe] = $vb80bb7740288fda1f201890375a60c8f;
}