<?php
/*
 * Copyright (c) 2010, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

class WV_Filter_Article_Status extends WV_Filter_Article_Column implements WV_IFilter {
	public function __construct($status, $operation = '=') {
		if (!in_array($operation, array('=', '<>', '!='))) {
			throw new WV_Exception_Filter(t('devutils_filters_base_unknown', $operation));
		}

		parent::__construct('article.status', $status ? 1 : 0, $operation);
	}
}
