<?php
/**
 * Part of the Inforex project
 * Copyright (C) 2013 Michał Marcińczuk, Jan Kocoń, Marcin Ptak
 * Wrocław University of Technology
 * See LICENCE 
 */

class PerspectiveFlags extends CCorpusPerspective {
	
	function execute()
	{
		global $corpus, $db;
		$sql = "SELECT corpora_flag_id AS id, name, short, sort, description FROM corpora_flags WHERE corpora_id=?";
		$this->page->set("flagsList", $db->fetch_rows($sql, array($corpus['id'])));
	}
}
?>
