getSelectableDoneFlagValues() public static method

Returns done flag values allowed to be selected
public static getSelectableDoneFlagValues ( ) : string
return string
コード例 #1
0
ファイル: ArchiveSelector.php プロジェクト: bossrabbit/piwik
 /**
  * Returns the SQL condition used to find successfully completed archives that
  * this instance is querying for.
  *
  * @param array $plugins
  * @param Segment $segment
  * @return string
  */
 private static function getNameCondition(array $plugins, Segment $segment)
 {
     // the flags used to tell how the archiving process for a specific archive was completed,
     // if it was completed
     $doneFlags = Rules::getDoneFlags($plugins, $segment);
     $allDoneFlags = "'" . implode("','", $doneFlags) . "'";
     $possibleValues = Rules::getSelectableDoneFlagValues();
     // create the SQL to find archives that are DONE
     return "((name IN ({$allDoneFlags})) AND (value IN (" . implode(',', $possibleValues) . ")))";
 }