Skip to content
This repository was archived by the owner on Aug 20, 2022. It is now read-only.

Commit 6cd3722

Browse files
committed
Update to 1.0.2 version
1 parent 0674b21 commit 6cd3722

6 files changed

Lines changed: 56 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.0.0 - 2017-05-04
4+
5+
* Eliasis Framework has been updated to version 1.0.5.
6+
37
## 1.0.1 - 2017-04-26
48

59
* Eliasis Framework has been updated to version 1.0.4.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eliasis-framework/wordpress-plugin",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Skeleton for create WordPress plugins with Eliasis Framework",
55
"type": "wordpress-plugin",
66
"keywords": [
@@ -31,7 +31,7 @@
3131
},
3232
"require": {
3333
"php": "^5.3 || ^7.0",
34-
"eliasis-framework/eliasis" : "^1.0.4",
34+
"eliasis-framework/eliasis" : "^1.0.5",
3535
"Josantonius/Json" : "^1.1.1",
3636
"Josantonius/Hook" : "^1.0.1",
3737
"Josantonius/WP_Register" : "^1.0.0",

lib/vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,19 @@
114114
"source": {
115115
"type": "git",
116116
"url": "https://github.com/Eliasis-Framework/Eliasis.git",
117-
"reference": "c14f939fb21d3ed23d4d203ffe1bdd3bd903d4a6"
117+
"reference": "37f2bfa11e68a11f83895f3aa49e76c530c9613d"
118118
},
119119
"dist": {
120120
"type": "zip",
121-
"url": "https://api.github.com/repos/Eliasis-Framework/Eliasis/zipball/c14f939fb21d3ed23d4d203ffe1bdd3bd903d4a6",
122-
"reference": "c14f939fb21d3ed23d4d203ffe1bdd3bd903d4a6",
121+
"url": "https://api.github.com/repos/Eliasis-Framework/Eliasis/zipball/37f2bfa11e68a11f83895f3aa49e76c530c9613d",
122+
"reference": "37f2bfa11e68a11f83895f3aa49e76c530c9613d",
123123
"shasum": ""
124124
},
125125
"require": {
126126
"josantonius/url": "^1.1.1",
127127
"php": "^5.6 || ^7.0"
128128
},
129-
"time": "2017-04-26 17:39:35",
129+
"time": "2017-04-29 21:06:11",
130130
"type": "library",
131131
"extra": {
132132
"branch-alias": {

lib/vendor/eliasis-framework/eliasis/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# @since 1.0.0 #
1010
# #
1111
############################################################################
12-
1.0.4
12+
1.0.5

lib/vendor/eliasis-framework/eliasis/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eliasis-framework/eliasis",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Eliasis PHP Framework",
55
"type": "library",
66
"keywords": [

lib/vendor/eliasis-framework/eliasis/src/Module/Module.php

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Eliasis PHP Framework application
3+
* Eliasis PHP Framework
44
*
55
* @author Josantonius - hello@josantonius.com
66
* @copyright Copyright (c) 2017
@@ -135,17 +135,56 @@ public static function add($module, $path) {
135135

136136
$folder = explode('/', $path);
137137

138-
$instance->modules[App::$id][self::$moduleName] = [
138+
$module['path'] = $path . App::DS;
139+
$module['folder'] = array_pop($folder) . App::DS;
139140

140-
'path' => $path . App::DS,
141-
'folder' => array_pop($folder) . App::DS,
142-
];
141+
$instance->modules[App::$id][self::$moduleName] = $module;
143142

144143
$instance->_getSettings();
145144

146145
$instance->_addResources();
147146
}
148147

148+
/**
149+
* Get modules info.
150+
*
151+
* @since 1.0.5
152+
*
153+
* @return array $data → modules info
154+
*/
155+
public static function getModulesInfo() {
156+
157+
$data = [];
158+
159+
$instance = self::getInstance();
160+
161+
$modules = array_keys($instance->modules[App::$id]);
162+
163+
foreach ($modules as $module) {
164+
165+
$module = $instance->modules[App::$id][$module];
166+
167+
$name = $module['name'];
168+
169+
$name = trim(implode(' ', preg_split("/(?=[A-Z])/", $name)));
170+
171+
$data[] = [
172+
173+
'id' => $module['name'],
174+
'name' => $name,
175+
'version' => $module['version'],
176+
'description' => $module['description'],
177+
'uri' => $module['uri'],
178+
'author' => $module['author'],
179+
'author-uri' => $module['author-uri'],
180+
'license' => $module['license'],
181+
'slug' => trim($module['folder'], App::DS),
182+
];
183+
}
184+
185+
return $data;
186+
}
187+
149188
/**
150189
* Get settings.
151190
*

0 commit comments

Comments
 (0)