This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Restore - Statistics - User - composer.phar update
- Loading branch information
1 parent
69ee72a
commit da6f986
Showing
24 changed files
with
394 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Restore\Model; | ||
|
||
class Restore | ||
{ | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Restore\Model; | ||
|
||
//use Zend\Db\TableGateway\TableGateway; | ||
|
||
class RestoreTable | ||
{ | ||
// protected $tableGateway; | ||
/* | ||
public function __construct(TableGateway $tableGateway) | ||
{ | ||
$this->tableGateway = $tableGateway; | ||
} | ||
public function fetchAll() | ||
{ | ||
$resultSet = $this->tableGateway->select(); | ||
return $resultSet; | ||
} | ||
*/ | ||
|
||
public function __construct() | ||
{ | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
<?php | ||
|
||
$title = 'Restore'; | ||
$this->headTitle($title); | ||
|
||
$title = 'Restore'; | ||
$this->headTitle($title); | ||
?> | ||
|
||
<h2><?php echo $this->translate($title); ?></h2> | ||
<h2><?php echo $title; ?></h2> | ||
<hr /> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
namespace Statistics; | ||
|
||
use Statistics\Model\Statistics; | ||
use Statistics\Model\StatisticsTable; | ||
use Zend\Db\ResultSet\ResultSet; | ||
use Zend\Db\TableGateway\TableGateway; | ||
|
||
class Module | ||
{ | ||
|
||
public function getAutoloaderConfig() | ||
{ | ||
return array( | ||
'Zend\Loader\ClassMapAutoloader' => array( | ||
__DIR__ . '/autoload_classmap.php', | ||
), | ||
'Zend\Loader\StandardAutoloader' => array( | ||
'namespaces' => array( | ||
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, | ||
), | ||
), | ||
); | ||
} | ||
|
||
public function getConfig() | ||
{ | ||
return include __DIR__ . '/config/module.config.php'; | ||
} | ||
|
||
public function getServiceConfig() | ||
{ | ||
return array( | ||
'factories' => array( | ||
'Statistics\Model\StatisticsTable' => function($sm) | ||
{ | ||
$tableGateway = $sm->get('StatisticsTableGateway'); | ||
$table = new StatisticsTable($tableGateway); | ||
return $table; | ||
}, | ||
'StatisticsTableGateway' => function($sm) | ||
{ | ||
$dbAdapter = $sm->get('Zend\Db\Adapter\Adapter'); | ||
$resultSetPrototype = new ResultSet(); | ||
$resultSetPrototype->setArrayObjectPrototype(new Statistics()); | ||
return new TableGateway('statistics', $dbAdapter, null, $resultSetPrototype); | ||
}, | ||
), | ||
); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
return array(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
return array( | ||
|
||
'controllers' => array( | ||
'invokables' => array( | ||
'Statistics\Controller\Statistics' => 'Statistics\Controller\StatisticsController', | ||
), | ||
), | ||
|
||
'router' => array( | ||
'routes' => array( | ||
'statistics' => array( | ||
'type' => 'segment', | ||
'options' => array( | ||
'route' => '/statistics[/][:action][/:id]', | ||
'constraints' => array( | ||
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | ||
'id' => '[0-9]+', | ||
), | ||
'defaults' => array( | ||
'controller' => 'Statistics\Controller\Statistics', | ||
'action' => 'index', | ||
), | ||
), | ||
), | ||
), | ||
), | ||
|
||
'view_manager' => array( | ||
'template_path_stack' => array( | ||
'statistics' => __DIR__ . '/../view', | ||
), | ||
), | ||
|
||
); |
17 changes: 17 additions & 0 deletions
17
module/Statistics/src/Statistics/Controller/StatisticsController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Statistics\Controller; | ||
|
||
use Zend\Mvc\Controller\AbstractActionController; | ||
use Zend\View\Model\ViewModel; | ||
|
||
class StatisticsController extends AbstractActionController | ||
{ | ||
|
||
public function indexAction() | ||
{ | ||
return new ViewModel(); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Statistics\Model; | ||
|
||
class Statistics | ||
{ | ||
|
||
|
||
|
||
} |
28 changes: 28 additions & 0 deletions
28
module/Statistics/src/Statistics/Model/StatisticsTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Statistics\Model; | ||
|
||
//use Zend\Db\TableGateway\TableGateway; | ||
|
||
class StatisticsTable | ||
{ | ||
// protected $tableGateway; | ||
/* | ||
public function __construct(TableGateway $tableGateway) | ||
{ | ||
$this->tableGateway = $tableGateway; | ||
} | ||
public function fetchAll() | ||
{ | ||
$resultSet = $this->tableGateway->select(); | ||
return $resultSet; | ||
} | ||
*/ | ||
|
||
public function __construct() | ||
{ | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
$title = 'Statistics'; | ||
$this->headTitle($title); | ||
?> | ||
|
||
<h2><?php echo $title; ?></h2> | ||
<hr /> | ||
|
||
|
Oops, something went wrong.