Removed unused classes

This commit is contained in:
Marcin Kurczewski 2014-05-12 11:03:04 +02:00
parent 6f6ce2ad24
commit c377ac8216
2 changed files with 0 additions and 29 deletions

View file

@ -1,25 +0,0 @@
<?php
use \Chibi\Sql as Sql;
class CommentSearchParser extends AbstractSearchParser
{
protected function processSetup(&$tokens)
{
$this->statement->addInnerJoin('post', new Sql\EqualsFunctor('post_id', 'post.id'));
$crit = new Sql\ConjunctionFunctor();
$allowedSafety = array_map(
function($safety)
{
return $safety->toInteger();
},
Access::getAllowedSafety());
$crit->add(Sql\InFunctor::fromArray('post.safety', Sql\Binding::fromArray($allowedSafety)));
if (!Access::check(new Privilege(Privilege::ListPosts, 'hidden')))
$crit->add(new Sql\NegationFunctor(new Sql\StringExpression('hidden')));
$this->statement->setCriterion($crit);
$this->statement->addOrderBy('comment.id', Sql\SelectStatement::ORDER_DESC);
}
}

View file

@ -1,4 +0,0 @@
<?php
class CommentSearchService extends AbstractSearchService
{
}