Method | Description | |
---|---|---|
createGitLogQueryFromRule ( $rawRule ) : string | Converts rule (array) to query string to be used as an argument for git log. | |
createRulesFromQueries ( $queries, $allowEmpty = false ) : array | Transforms queries into arrays for easier manipulation. | |
createSqlRestrictionFromRule ( $rule ) : string | Converts rule (array) to isolated (enclosed in brackets) part of SQL restriction. | |
entityMatchesSomeRule ( $entity, $rules ) : boolean | Tests if entity satisfies at least one of given rules. |
Method | Description | |
---|---|---|
escapeGitLogArgument ( string $value ) : string | null | ||
tokenToRegex ( $token, $delimiter ) | ||
tokenToSqlString ( $token ) | ||
tokenizeValue ( $value ) : array | Splits value into tokens. | |
tokensContainWildcard ( $valueTokens ) | ||
tokensToRegex ( $valueTokens ) : string | Converts tokens to regular expression. | |
tokensToSqlString ( $valueTokens ) |
public static createGitLogQueryFromRule ( $rawRule ) : string | ||
$rawRule | array | |
return | string |
public static createRulesFromQueries ( $queries, $allowEmpty = false ) : array | ||
$queries | ||
$allowEmpty | boolean Allow empty values | |
return | array |
public static createSqlRestrictionFromRule ( $rule ) : string | ||
$rule | array | |
return | string |
public static entityMatchesSomeRule ( $entity, $rules ) : boolean | ||
$entity | ||
$rules | ||
return | boolean |