mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
implemented filters on Community Content
- defined CC flags - implemented flagging by comments
This commit is contained in:
@@ -137,8 +137,11 @@ class GameObjectListFilter extends Filter
|
||||
public $extraOpts = [];
|
||||
|
||||
protected $genericFilter = array(
|
||||
15 => [FILTER_CR_NUMERIC, 'id', null], // id
|
||||
7 => [FILTER_CR_NUMERIC, 'reqSkill', null], // requiredskilllevel
|
||||
15 => [FILTER_CR_NUMERIC, 'id', null ], // id
|
||||
7 => [FILTER_CR_NUMERIC, 'reqSkill', null ], // requiredskilllevel
|
||||
13 => [FILTER_CR_FLAG, 'cuFlags', CUSTOM_HAS_COMMENT ], // hascomments
|
||||
11 => [FILTER_CR_FLAG, 'cuFlags', CUSTOM_HAS_SCREENSHOT], // hasscreenshots
|
||||
18 => [FILTER_CR_FLAG, 'cuFlags', CUSTOM_HAS_VIDEO ], // hasvideos
|
||||
);
|
||||
|
||||
/*
|
||||
@@ -202,12 +205,6 @@ class GameObjectListFilter extends Filter
|
||||
return [1];
|
||||
}
|
||||
break;
|
||||
case 13: // hascomments [yn]
|
||||
break;
|
||||
case 11: // hasscreenshots [yn]
|
||||
break;
|
||||
case 18: // hasvideos [yn]
|
||||
break;
|
||||
}
|
||||
|
||||
unset($cr);
|
||||
|
||||
Reference in New Issue
Block a user