Subversion Repositories novennotification

[/] [modules/] [novennotification/] [view.php] - Rev 1

Compare with Previous | Blame | View Log

<?php

//
// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
// SOFTWARE NAME: Noven notification
// SOFTWARE RELEASE: 1.0.0
// COPYRIGHT NOTICE: Copyright (C) 2009 - Jean-Luc Nguyen, Noven.
// SOFTWARE LICENSE: GNU General Public License v2.0
// NOTICE: >
//   This program is free software; you can redistribute it and/or
//   modify it under the terms of version 2.0  of the GNU General
//   Public License as published by the Free Software Foundation.
//
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//
//   You should have received a copy of version 2.0 of the GNU General
//   Public License along with this program; if not, write to the Free
//   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//   MA 02110-1301, USA.
//
//
// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
//

include_once( "kernel/common/template.php" );

$Module =& $Params["Module"];
$Result = array();
$tpl = templateInit();
$http = eZHTTPTool::instance();

if ( $Params['UserID'] )
{
    $userContentObjectID = $Params['UserID'];
    $user = eZUser::fetch($userContentObjectID);
    $subscribedNodes = eZSubTreeHandler::rules( $user, 0, 500 );  

    $tpl->setVariable('subscribed_nodes', $subscribedNodes);
    $tpl->setVariable('user', $user);
}

$Result['content'] = $tpl->fetch( "design:novennotification/view.tpl" );
$Result['path'] = array(
                        array(  'url'   => false,
                                'text'  => ezi18n( 'extension/novennotification', 'Users notification settings' ) ) );

 

Compare with Previous | Blame | View Log