projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0bca4f
)
use __construct
author
Franck Villaume
<franck.villaume@trivialdev.com>
Mon, 6 Dec 2021 15:03:05 +0000
(16:03 +0100)
committer
Franck Villaume
<franck.villaume@trivialdev.com>
Mon, 6 Dec 2021 15:03:05 +0000
(16:03 +0100)
src/plugins/projectimport/common/ProjectImporter.class.php
patch
|
blob
|
history
src/plugins/projectimport/common/UploadedFiles.class.php
patch
|
blob
|
history
src/plugins/projectimport/www/index.php
patch
|
blob
|
history
src/plugins/projectimport/www/projectsimport.php
patch
|
blob
|
history
src/plugins/projectimport/www/usersimport.php
patch
|
blob
|
history
src/plugins/repositoryapi/include/RepositoryAPIPluginDescriptor.class.php
patch
|
blob
|
history
src/plugins/repositoryapi/include/RepositoryAPIPluginInfo.class.php
patch
|
blob
|
history
diff --git
a/src/plugins/projectimport/common/ProjectImporter.class.php
b/src/plugins/projectimport/common/ProjectImporter.class.php
index 4a5c16a7274a7a4809c8f2e8b40dacce5dff9f6c..116da30a5f377874ee54ba8eaeb36bb02621b1f5 100644
(file)
--- a/
src/plugins/projectimport/common/ProjectImporter.class.php
+++ b/
src/plugins/projectimport/common/ProjectImporter.class.php
@@
-46,7
+46,7
@@
class ImportedProject {
protected $is_public;
protected $built_from_template;
protected $is_public;
protected $built_from_template;
- function
ImportedProje
ct($res) {
+ function
__constru
ct($res) {
$this->res = $res;
$this->unix_name = $this->res->getPropValue('doap:name');
$this->res = $res;
$this->unix_name = $this->res->getPropValue('doap:name');
@@
-140,7
+140,7
@@
class ImportedProjectRole {
protected $project;
protected $users;
protected $project;
protected $users;
- function
ImportedProjectRole
(& $project, $res) {
+ function
__construct
(& $project, $res) {
$this->project = $project;
$this->name = $res->getPropValue('sioc:name');
$this->users = $res->getPropValues('sioc:function_of');
$this->project = $project;
$this->name = $res->getPropValue('sioc:name');
$this->users = $res->getPropValues('sioc:function_of');
@@
-167,7
+167,7
@@
class ImportedUser {
protected $email;
//protected $initial_role;
protected $email;
//protected $initial_role;
- function
ImportedUser
($res) {
+ function
__construct
($res) {
$this->res = $res;
$this->unix_name = $this->res->getPropValue('foaf:accountName');
$this->res = $res;
$this->unix_name = $this->res->getPropValue('foaf:accountName');
@@
-279,7
+279,7
@@
class ProjectImporter {
* TODO Enter description here ...
* @param unknown_type $group_id
*/
* TODO Enter description here ...
* @param unknown_type $group_id
*/
- function
ProjectImporter
($the_group_id = FALSE) {
+ function
__construct
($the_group_id = FALSE) {
global $group_id;
if (! $the_group_id) {
$the_group_id = $group_id;
global $group_id;
if (! $the_group_id) {
$the_group_id = $group_id;
diff --git
a/src/plugins/projectimport/common/UploadedFiles.class.php
b/src/plugins/projectimport/common/UploadedFiles.class.php
index 3bac03d63975d487be41a1952581927711d7d64e..31bce37ca649567c3a03c7dc9a8cee7186db73f0 100644
(file)
--- a/
src/plugins/projectimport/common/UploadedFiles.class.php
+++ b/
src/plugins/projectimport/common/UploadedFiles.class.php
@@
-1,5
+1,4
@@
<?php
<?php
-
/**
* Utility classes to manage uploaded files
*
/**
* Utility classes to manage uploaded files
*
@@
-237,7
+236,7
@@
class AbstractFilesDirectory extends FFError {
*
*/
class SiteAdminFilesDirectory extends AbstractFilesDirectory {
*
*/
class SiteAdminFilesDirectory extends AbstractFilesDirectory {
- public function
SiteAdminFilesDirectory
($HTML) {
+ public function
__construct
($HTML) {
$storage_base = forge_get_config('storage_base', 'projectimport');
$storage_base = forge_get_config('storage_base', 'projectimport');
@@
-261,7
+260,7
@@
class ProjectFilesDirectory extends AbstractFilesDirectory {
* @param HTML generator $HTML
* @param integer $group_id
*/
* @param HTML generator $HTML
* @param integer $group_id
*/
- public function
ProjectFilesDirectory
($HTML, $group_id) {
+ public function
__construct
($HTML, $group_id) {
// store the project files inside a group unix name's subdir
$group = group_get_object($group_id);
// store the project files inside a group unix name's subdir
$group = group_get_object($group_id);
@@
-308,7
+307,7
@@
class FileManagerPage {
* @param HTML generator $HTML
* @param AbstractFilesDirectory $storage (optional)
*/
* @param HTML generator $HTML
* @param AbstractFilesDirectory $storage (optional)
*/
- function
FileManagerPage
($HTML, $storage=False) {
+ function
__construct
($HTML, $storage=False) {
$this->html_generator = $HTML;
$this->message = '';
$this->html_generator = $HTML;
$this->message = '';
diff --git
a/src/plugins/projectimport/www/index.php
b/src/plugins/projectimport/www/index.php
index c50df991179dd28666f4dfe028b78f499f828653..c265bd0afdbd7cf0035bdab8f4a7dedf670aee7e 100644
(file)
--- a/
src/plugins/projectimport/www/index.php
+++ b/
src/plugins/projectimport/www/index.php
@@
-64,7
+64,7
@@
class ProjectImportPage extends FileManagerPage {
protected $form_header_already_displayed;
protected $form_header_already_displayed;
- function
ProjectImportPage
($HTML) {
+ function
__construct
($HTML) {
global $group_id;
$this->form_header_already_displayed = false;
$this->importer = False;
global $group_id;
$this->form_header_already_displayed = false;
$this->importer = False;
diff --git
a/src/plugins/projectimport/www/projectsimport.php
b/src/plugins/projectimport/www/projectsimport.php
index 6fc3ecac9ce62ead07dd34b170e8a7f296bd6a37..2823bcacfed642c33ae17bc7820cad2801e65d14 100644
(file)
--- a/
src/plugins/projectimport/www/projectsimport.php
+++ b/
src/plugins/projectimport/www/projectsimport.php
@@
-63,7
+63,7
@@
class ProjectsImportPage extends FileManagerPage {
protected $form_header_already_displayed;
protected $form_header_already_displayed;
- function
ProjectsImportPage
($HTML) {
+ function
__construct
($HTML) {
$this->form_header_already_displayed = false;
$this->importer = ProjectImporter::getInstance();
$this->form_header_already_displayed = false;
$this->importer = ProjectImporter::getInstance();
diff --git
a/src/plugins/projectimport/www/usersimport.php
b/src/plugins/projectimport/www/usersimport.php
index ac35109ce51e87def09af9b792b5260689d547f3..9d33fc107cce30c8ba6c2432ba4eef488b999784 100644
(file)
--- a/
src/plugins/projectimport/www/usersimport.php
+++ b/
src/plugins/projectimport/www/usersimport.php
@@
-51,7
+51,7
@@
class UsersImportPage extends FileManagerPage {
protected $form_header_already_displayed;
protected $form_header_already_displayed;
- function
UsersImportPage
($HTML) {
+ function
__construct
($HTML) {
$this->form_header_already_displayed = false;
$this->importer = ProjectImporter::getInstance();
$this->form_header_already_displayed = false;
$this->importer = ProjectImporter::getInstance();
diff --git
a/src/plugins/repositoryapi/include/RepositoryAPIPluginDescriptor.class.php
b/src/plugins/repositoryapi/include/RepositoryAPIPluginDescriptor.class.php
index a3b52384babf4207d88cb653307c25f4a3a7f531..f703fbeb963fe782c570f78507ed0da3b33f1a1b 100644
(file)
--- a/
src/plugins/repositoryapi/include/RepositoryAPIPluginDescriptor.class.php
+++ b/
src/plugins/repositoryapi/include/RepositoryAPIPluginDescriptor.class.php
@@
-22,7
+22,7
@@
require_once 'common/plugin/PluginDescriptor.class.php';
class RepositoryAPIPluginDescriptor extends PluginDescriptor {
require_once 'common/plugin/PluginDescriptor.class.php';
class RepositoryAPIPluginDescriptor extends PluginDescriptor {
- function
RepositoryAPIPluginDescriptor
() {
+ function
__construct
() {
$this->PluginDescriptor(_('RepositoryAPI'), 'v1.0', _('Metadata retrieval API for repositories'));
}
}
$this->PluginDescriptor(_('RepositoryAPI'), 'v1.0', _('Metadata retrieval API for repositories'));
}
}
diff --git
a/src/plugins/repositoryapi/include/RepositoryAPIPluginInfo.class.php
b/src/plugins/repositoryapi/include/RepositoryAPIPluginInfo.class.php
index 780006d440c7b05230ca66b8bcf071b229ef0566..9939beae591bfb94e8fefebbe9c78121719e3e63 100644
(file)
--- a/
src/plugins/repositoryapi/include/RepositoryAPIPluginInfo.class.php
+++ b/
src/plugins/repositoryapi/include/RepositoryAPIPluginInfo.class.php
@@
-23,7
+23,7
@@
require_once 'common/plugin/PluginInfo.class.php';
require_once 'RepositoryAPIPluginDescriptor.class.php';
class RepositoryAPIPluginInfo extends PluginInfo {
require_once 'RepositoryAPIPluginDescriptor.class.php';
class RepositoryAPIPluginInfo extends PluginInfo {
- function
RepositoryAPIPluginInfo
(&$plugin) {
+ function
__construct
(&$plugin) {
$this->PluginInfo($plugin);
$this->setPluginDescriptor(new RepositoryAPIPluginDescriptor());
}
$this->PluginInfo($plugin);
$this->setPluginDescriptor(new RepositoryAPIPluginDescriptor());
}