|
From: <txm...@us...> - 2015-05-04 18:50:08
|
Revision: 13057
http://sourceforge.net/p/xoops/svn/13057
Author: txmodxoops
Date: 2015-05-04 18:50:06 +0000 (Mon, 04 May 2015)
Log Message:
-----------
Deleted unnecessaries functions in classes
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/admin/building.php
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateArchitecture.php
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateFile.php
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateStructure.php
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/user/UserSubmit.php
XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/docs/changelog.txt
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/admin/building.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/admin/building.php 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/admin/building.php 2015-05-04 18:50:06 UTC (rev 13057)
@@ -43,7 +43,7 @@
}
}
// Structure
- include_once TDMC_PATH . '/class/files/TDMCreateArchitecture.php';
+ include_once TDMC_CLASSES_PATH . '/files/TDMCreateArchitecture.php';
$handler = TDMCreateArchitecture::getInstance();
// Creation of the structure of folders and files
$base_architecture = $handler->createBaseFoldersFiles($moduleObj);
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateArchitecture.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateArchitecture.php 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateArchitecture.php 2015-05-04 18:50:06 UTC (rev 13057)
@@ -47,7 +47,6 @@
{
$this->tdmcreate = TDMCreateHelper::getInstance();
$this->structure = TDMCreateStructure::getInstance();
- $this->structure->setPath(TDMC_PATH);
$this->structure->setUploadPath(TDMC_UPLOAD_REPOSITORY_PATH);
}
@@ -66,37 +65,9 @@
}
return $instance;
- }
+ }
/*
- * @public function createPath
- * @param string $path
- */
- /**
- * @param $path
- */
- public function createPath($path)
- {
- if (isset($path)) {
- $this->structure->setPath($path);
- }
- }
-
- /*
- * @public function createUploadPath
- * @param string $uploadPath
- */
- /**
- * @param $uploadPath
- */
- public function createUploadPath($uploadPath)
- {
- if (isset($uploadPath)) {
- $this->structure->setUploadPath($uploadPath);
- }
- }
-
- /*
* @public function createBaseFoldersFiles
* @param string $module
*/
@@ -210,15 +181,13 @@
// Creation of "templates/admin" folder and index.html file
$this->structure->makeDirAndCopyFile('templates/admin', $indexFile, 'index.html');
}
- if (is_object($table)) {
- if (1 == $table->getVar('table_blocks')) {
+ if ($table->getVar('table_name') != null) {
+ if (1 == $module->getVar('mod_blocks')) {
// Creation of "templates/blocks" folder and index.html file
$this->structure->makeDirAndCopyFile('templates/blocks', $indexFile, 'index.html');
}
- if ($table->getVar('table_name') != null) {
- // Creation of "sql" folder and index.html file
- $this->structure->makeDirAndCopyFile('sql', $indexFile, 'index.html');
- }
+ // Creation of "sql" folder and index.html file
+ $this->structure->makeDirAndCopyFile('sql', $indexFile, 'index.html');
if (1 == $table->getVar('table_notifications')) {
// Creation of "language/english/mail_template" folder and index.html file
$this->structure->makeDirAndCopyFile('language/english/mail_template', $indexFile, 'index.html');
@@ -227,7 +196,7 @@
$this->structure->makeDirAndCopyFile('language/' . $language . '/mail_template', $indexFile, 'index.html');
}
}
- }
+ }
}
/*
@@ -368,7 +337,7 @@
$includeFunctions->write($module, 'functions.php');
$ret[] = $includeFunctions->render();
// Creation of blocks language file
- if (is_object($table)) {
+ if ($table->getVar('table_name') != null) {
// Include Install File
$includeInstall = IncludeInstall::getInstance();
$includeInstall->write($module, $table, $tables, 'install.php');
@@ -445,8 +414,7 @@
$includeCommentFunctions = IncludeCommentFunctions::getInstance();
$includeCommentFunctions->write($module, $table, 'comment_functions.php');
$ret[] = $includeCommentFunctions->renderFile();
- }
-
+ }
}
// Creation of admin files
if (1 == $module->getVar('mod_admin')) {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateFile.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateFile.php 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateFile.php 2015-05-04 18:50:06 UTC (rev 13057)
@@ -139,33 +139,9 @@
if (isset($subdir) && is_string($subdir)) {
$this->setSubDir($subdir);
}
- }
+ }
/*
- * @private function setPath
- * @param string $folderName
- */
- /**
- * @param $folderName
- */
- private function setPath($folderName)
- {
- $this->path = TDMC_PATH . DIRECTORY_SEPARATOR . $folderName;
- }
-
- /*
- * @private function getPath
- * @param null
- */
- /**
- * @return string
- */
- private function getPath()
- {
- return $this->path;
- }
-
- /*
* @private function setRepositoryPath
* @param string $moduleDirname
*/
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateStructure.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateStructure.php 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/TDMCreateStructure.php 2015-05-04 18:50:06 UTC (rev 13057)
@@ -77,33 +77,9 @@
}
return $instance;
- }
-
+ }
+
/*
- * @public function setPath
- * @param string $path
- */
- /**
- * @param $path
- */
- public function setPath($path)
- {
- $this->path = $path;
- }
-
- /*
- * @public function getPath
- * @return string $path
- */
- /**
- * @return null
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /*
* @protected function setUploadPath
* @param string $path
*/
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/user/UserSubmit.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/user/UserSubmit.php 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/class/files/user/UserSubmit.php 2015-05-04 18:50:06 UTC (rev 13057)
@@ -16,7 +16,7 @@
* @package tdmcreate
* @since 2.5.0
* @author Txmod Xoops http://www.txmodxoops.org
- * @version $Id: user_submit.php 12258 2014-01-02 09:33:29Z timgno $
+ * @version $Id: UserSubmit.php 12258 2014-01-02 09:33:29Z timgno $
*/
defined('XOOPS_ROOT_PATH') or die('Restricted access');
@@ -84,11 +84,11 @@
{
$ret = <<<EOT
include __DIR__ . '/header.php';
-\$op = downloads_CleanVars(\$_REQUEST, 'op', 'form', 'string');
+\$op = {$moduleDirname}_CleanVars(\$_REQUEST, 'op', 'form', 'string');
// Template
\$xoopsOption['template_main'] = '{$moduleDirname}_submit.tpl';
include_once XOOPS_ROOT_PATH.'/header.php';
-\$xoTheme->addStylesheet( XOOPS_URL . '/modules/' . \$xoopsModule->getVar('dirname', 'n') . '/css/style.css', null );
+\$xoTheme->addStylesheet( XOOPS_URL . '/modules/' . \$xoopsModule->getVar('dirname', 'n') . '/assets/css/style.css', null );
//On recupere la valeur de l'argument op dans l'URL$
// redirection if not permissions
if (\$perm_submit == false) {
Modified: XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/docs/changelog.txt
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/docs/changelog.txt 2015-05-04 13:07:33 UTC (rev 13056)
+++ XoopsModules/TDMCreate/branches/timgno/1.91a2/tdmcreate/docs/changelog.txt 2015-05-04 18:50:06 UTC (rev 13057)
@@ -9,6 +9,8 @@
- Added more field database in tables form
- Added more field database in fields form
- Added checkAll checkbox in modules & tables form
+- Added more files for user side
+- Added autoload file for all classes
=================================
2014/01/02: Version 1.91 alpha 1
|