Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Removes no longer needed view helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed May 6, 2016
1 parent ed936ea commit fe4cb8d
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 689 deletions.
25 changes: 21 additions & 4 deletions module/Application/Module.php
@@ -1,10 +1,27 @@
<?php

/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* bareos-webui - Bareos Web-Frontend
*
* @link https://github.com/bareos/bareos-webui for the canonical source repository
* @copyright Copyright (c) 2013-2016 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @license GNU Affero General Public License (http://www.gnu.org/licenses/)
* @author Frank Bergkemper
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace Application;
Expand Down
5 changes: 0 additions & 5 deletions module/Application/autoload_classmap.php
Expand Up @@ -2,10 +2,5 @@

return array(
'Application\Module' => __DIR__ . '/Module.php',
'Application\View\Helper\Date' => __DIR__ . '/src/Application/View/Helper/Date.php',
'Application\View\Helper\JobStatus' => __DIR__ . '/src/Application/View/Helper/JobStatus.php',
'Application\View\Helper\JobLevel' => __DIR__ . '/src/Application/View/Helper/JobLevel.php',
'Application\View\Helper\JobType' => __DIR__ . '/src/Application/View/Helper/JobType.php',
'Application\View\Helper\JobDuration' => __DIR__ . '/src/Application/View/Helper/JobDuration.php',
'Application\Controller\IndexController' => __DIR__ . '/src/Application/Controller/IndexController.php',
);
10 changes: 1 addition & 9 deletions module/Application/config/module.config.php
Expand Up @@ -88,15 +88,7 @@
),
'view_helpers' => array(
'invokables' => array (
'printDate' => 'Application\View\Helper\Date',
'printJobStatus' => 'Application\View\Helper\JobStatus',
'printJobType' => 'Application\View\Helper\JobType',
'printJobDuration' => 'Application\View\Helper\JobDuration',
'printBytes' => 'Application\View\Helper\Bytes',
'printRetention' => 'Application\View\Helper\Retention',
'printHumanReadableTimeperiod' => 'Application\View\Helper\HumanReadableTimeperiod',
'printExpiration' => 'Application\View\Helper\Expiration',
'printStatusGlyphicons' => 'Application\View\Helper\StatusGlyphicons',
//'printExample' => 'Application\View\Helper\Example', // Example ViewHelper
),
),
'view_manager' => array(
Expand Down
59 changes: 0 additions & 59 deletions module/Application/src/Application/View/Helper/Bytes.php

This file was deleted.

69 changes: 0 additions & 69 deletions module/Application/src/Application/View/Helper/Date.php

This file was deleted.

Expand Up @@ -5,8 +5,9 @@
* bareos-webui - Bareos Web-Frontend
*
* @link https://github.com/bareos/bareos-webui for the canonical source repository
* @copyright Copyright (c) 2013-2014 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @copyright Copyright (c) 2013-2016 Bareos GmbH & Co. KG (http://www.bareos.org/)
* @license GNU Affero General Public License (http://www.gnu.org/licenses/)
* @author Frank Bergkemper
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
Expand All @@ -22,15 +23,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace Application\View\Helper;

use Zend\View\Helper\AbstractHelper;

class JobDuration extends AbstractHelper
class Example extends AbstractHelper
{
public function __invoke($duration)
{
return $duration;
}

protected $result;

public function __invoke($var)
{
$this->result = $var;

// DO SOMETHING

return $this->result;
}
}
80 changes: 0 additions & 80 deletions module/Application/src/Application/View/Helper/Expiration.php

This file was deleted.

0 comments on commit fe4cb8d

Please sign in to comment.