コード例 #1
0
ファイル: class.patch.php プロジェクト: ralpheav/processmaker
 public static function isApplicable()
 {
     patch::$isPathchable = false;
     $con = Propel::getConnection("workflow");
     $stmt = $con->prepareStatement("describe TASK;");
     $rs = $stmt->executeQuery();
     $rs->next();
     while ($row = $rs->getRow()) {
         if ($row['Field'] == "TAS_GROUP_VARIABLE") {
             $version = System::getVersion();
             $version = explode('-', $version);
             if ($version[0] == '2.5.1') {
                 echo "Version " . $version[0] . " Patch\n";
                 patch::$isPathchable = true;
             }
             break;
         }
         $rs->next();
     }
     return patch::$isPathchable;
 }