function conflictResolved($codePool, $rewrites)
 {
     $ret = FALSE;
     krsort($rewrites);
     $extendsClasses = $rewrites;
     foreach ($rewrites as $rewriteIndex => $class) {
         unset($extendsClasses[$rewriteIndex]);
         if (count($extendsClasses) > 0) {
             $classPath = $this->getClassPath($rewrites, $codePool, $rewriteIndex);
             $pureClassName = Amasty_Base_Model_Conflict::getPureClassName($class);
             $lines = file($classPath);
             foreach ($lines as $line) {
                 if (strpos($line, $pureClassName) !== FALSE) {
                     $ret = TRUE;
                     break;
                 }
             }
         }
     }
     return $ret;
 }
Esempio n. 2
0
 function getClassPath($rewrites, $codePool, $rewriteIndex)
 {
     return Amasty_Base_Model_Conflict::getClassPath($codePool[$rewriteIndex], $rewrites[$rewriteIndex]);
 }