Merge branch 'maint/7.0'
[ninja.git] / modules / lsfilter / libraries / LSFilterPP.php
blob61e17a67f157aa10b4bfdb9089f2146e2ddf9eba
1 <?php
3 /**
4 * Preprocessor for lsfilter, resolves strings and integers
5 */
6 class LSFilterPP extends LSFilterPreprocessor {
7 /**
8 * Remove quotations of a string
9 */
10 public function preprocess_string( $value ) {
11 return stripslashes( substr( $value, 1, -1 ) );
14 /**
15 * Convert a integer token to integer
17 public function preprocess_integer($value) {
18 return intval($value);