Permalink
Browse files

Fix Jenkins issues

  • Loading branch information...
llaumgui committed Mar 28, 2012
1 parent ec5c1f8 commit 1820be1dc07430349f0dd40a9e5113af34cc6df2
@@ -1,49 +1,27 @@
<?php
-//
-// Definition of eZFluxBBOperators class
-//
-// Created on: <01-Sep-2008 19:00:00 llaumgui>
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: eZFluxBB
-// SOFTWARE RELEASE: 1.3
-// BUILD VERSION:
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// 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 ##
-//
-
-/*! \file ezfluxbboperators.php
-*/
-
-/*!
- \class eZFluxBBOperators ezfluxbboperators.php
- \brief Template operator for FluxBB
+/**
+ * File containing the eZFluxBBOperators class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+
+/**
+ * The eZFluxBB class template operator for FluxBB
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
*/
class eZFluxBBOperators
{
private $Operators;
- /*!
- Constructor
+ /**
+ * Constructor
*/
function __construct()
{
@@ -54,27 +32,58 @@ function __construct()
+ /**
+ * Return list of operators
+ *
+ * @return multitype:string
+ */
function &operatorList()
{
return $this->Operators;
}
+
+
+ /**
+ * Return named parameters by operator
+ *
+ * @return boolean
+ */
function namedParameterPerOperator()
{
return true;
}
+
+
+ /**
+ * Return named parameters list
+ *
+ * @return multitype:multitype:
+ */
function namedParameterList()
{
- return array( 'bbcode2html' => array( ),
- );
+ return array(
+ 'bbcode2html' => array( )
+ );
}
+ /**
+ * Excecute template operator action
+ *
+ * @param eZTemplate_type $tpl
+ * @param string $operatorName
+ * @param array $operatorParameters
+ * @param operatorList $rootNamespace
+ * @param operatorList $currentNamespace
+ * @param string $operatorValue
+ * @param array $namedParameters
+ */
function modify( &$tpl, &$operatorName, &$operatorParameters, &$rootNamespace,
- &$currentNamespace, &$operatorValue, &$namedParameters )
- {
+ &$currentNamespace, &$operatorValue, &$namedParameters
+ ) {
switch ( $operatorName )
{
case 'bbcode2html':
@@ -86,4 +95,4 @@ function modify( &$tpl, &$operatorName, &$operatorParameters, &$rootNamespace,
}
-?>
+?>
@@ -1,29 +1,19 @@
<?php
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: Fedora-Fr - eZP Base
-// SOFTWARE RELEASE: 5.0.0
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// 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 ##
-//
+/**
+ * File containing the eZFluxBBPreferences class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+/**
+ * The eZFluxBBPreferences allow to store eZ Publish user preference inside eZ Publish
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
+ */
class eZFluxBBPreferences extends eZPersistentObject
{
/**
@@ -46,20 +36,20 @@ public static function definition()
'datatype' => 'int',
'default' => '',
'required' => true ),
- "value" => array( 'name' => 'fluxBBUserID',
+ "value" => array( 'name' => 'fluxBBUserID',
'datatype' => 'int',
'default' => '',
'required' => true )
),
"keys" => array( "id" ),
"function_attributes" => array(),
- "increment_key" => "id",
+ "increment_key" => "id",
"class_name" => "eZFluxBBPreferences",
"sort" => array( "id" => "asc" ),
"name" => "ezfluxbbpreferences"
);
}
}
-
+
?>
@@ -1,68 +1,52 @@
<?php
-//
-// Definition of ezjscoreFluxBBServerCallFunctions class
-//
-// Created on: <28 déc. 2010 14:51:22 llaumgui>
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: eZFluxBB
-// SOFTWARE RELEASE: 1.3
-// BUILD VERSION:
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// 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 ##
-//
-
-/*! \file ezjscorefluxbbservercallfunctions.php
-*/
-
-/*!
- \class ezjscoreFluxBBServerCallFunctions ezjscorefluxbbservercallfunctions.php
- \brief eZJSCore server call used by Fedora-Fr
-*/
+/**
+ * File containing the ezjscoreFluxBBServerCallFunctions class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+
+/**
+ * The eZFluxBBPreferences provide eZJSCore server call.
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
+ */
class ezjscoreFluxBBServerCallFunctions extends ezjscServerFunctions
{
+
/**
* LoginBox
+ *
* @param array $args
*/
public static function loginBox( $args )
{
$tpl = eZTemplate::factory();
- $eZFluxBBINI = eZINI::instance( 'ezfluxbb.ini');
+ $eZFluxBBINI = eZINI::instance( 'ezfluxbb.ini' );
$fluxVersion = $eZFluxBBINI->variable( 'FluxBBInfo', 'Version' );
$cookieName = $eZFluxBBINI->variable( 'FluxBBInfo', 'CookieName' );
$boardURL = $eZFluxBBINI->variable( 'FluxBBInfo', 'BoardURL' );
$tpl->setVariable( 'board_url', $boardURL );
// No cookie:
- if ( !array_key_exists($cookieName, $_COOKIE) )
+ if ( !array_key_exists( $cookieName, $_COOKIE ) )
+ {
return $tpl->fetch( "design:ezfluxbb/loginbox/annonymous.tpl" );
+ }
$cookie = eZFluxBB::cookie2Array();
// Bad cookie
- if ( !array_key_exists( 'user_id', $cookie ) || sizeof($cookie) < 3 || intval($cookie['user_id']) <= 1 )
+ if ( !array_key_exists( 'user_id', $cookie ) || sizeof( $cookie ) < 3 || intval( $cookie['user_id'] ) <= 1 )
+ {
return $tpl->fetch( "design:ezfluxbb/loginbox/annonymous.tpl" );
+ }
- $tpl->setVariable( 'fluxbb_user_id', intval($cookie['user_id']) );
+ $tpl->setVariable( 'fluxbb_user_id', intval( $cookie['user_id'] ) );
// Full version
if ( isset($args[0]) && $args[0] == 'full' )
Oops, something went wrong.

0 comments on commit 1820be1

Please sign in to comment.