<?php
/**
* @version 1.0.0
* @package Anahita Social Engine
* @copyright Copyright (C) 2007 - 2010 rmd Studio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class ComSocialengineViewApplicationsHtml extends ComSocialengineViewHtml
{
public function prepareDefaultLayout()
{
$this->getToolbar()
->reset()
->append('enable')
->append('disable')
->setTitle('Social Engine Applications')
->setIcon('config.png')
;
$query = KFactory::get('lib.anahita.domain.factory.query')->get('admin::com.socialengine.model.application')
->where('component','<>','com_socialengine')
;
if ( isset($this->state->order) && isset($this->state->direction) ) {
$query->order($this->state->order, $this->state->direction);
}
$applications = $query->fetchAll();
$this->assign('applications', $applications);
}
}