Avoid using undefined variables such as '$values' which will lead to PHP notices. Open
$values['backup_option'] = 'full_backup';
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$values' which will lead to PHP notices. Open
$form->setDefaults($values);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Missing class import via use statement (line '147', column '17'). Open
$form = new FormValidator('special_exports', 'post');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '219', column '23'). Open
$zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
The method rename_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
return false;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method fullexportspecial uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$export = true;
return $name;
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method fullexportspecial uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$querypath = $FileZip['PATH'];
}
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method fullexportspecial uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
echo Display::return_message(get_lang('There were no courses registered or may not have made the association with the sessions'), 'error'); //main API
$export = false;
return false;
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method create_zip uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$handle = opendir($temp_zip_dir);
while (false !== ($file = readdir($handle))) {
if ("." != $file && ".." != $file) {
$Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours
- Read upRead up
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The parameter $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Variable "tbl_session_course" is not in valid camel caps format Open
$tbl_session_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$_course = api_get_course_info($Code_course);
- Exclude checks
Variable "Resource" is not in valid camel caps format Open
foreach ($Resource as $Code_course => $Sessions) {
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
$groupCondition = " props.to_group_id = $to_group_id";
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
if (empty($to_group_id)) {
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
$ListSession[$rows_session['id']] = $rows_session['title'];
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
- Exclude checks
Variable "Sessions" is not in valid camel caps format Open
foreach ($Resource as $Code_course => $Sessions) {
- Exclude checks
Variable "sql_session" is not in valid camel caps format Open
$query_session = Database::query($sql_session);
- Exclude checks
Variable "ListSession" is not in valid camel caps format Open
$ListSession = [];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = $_course['real_id'];
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
$sql_session = "SELECT id, title FROM $tbl_session ";
- Exclude checks
Variable "IdSession" is not in valid camel caps format Open
foreach ($Sessions as $IdSession => $value) {
- Exclude checks
Variable "remove_dir" is not in valid camel caps format Open
$remove_dir = ('/' != $path) ? substr($path, 0, strlen($path) - strlen(basename($path))) : '/';
- Exclude checks
Variable "Resource" is not in valid camel caps format Open
$Resource = $_POST['resource'];
- Exclude checks
Variable "Code_course" is not in valid camel caps format Open
foreach ($Resource as $Code_course => $Sessions) {
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder->add(
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
$tbl_property = Database::get_course_table(TABLE_ITEM_PROPERTY);
- Exclude checks
Variable "query_session" is not in valid camel caps format Open
while ($rows_session = Database::fetch_assoc($query_session)) {
- Exclude checks
Variable "rows_course_session_file" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
$to_group_id = 0;
- Exclude checks
Variable "ListSession" is not in valid camel caps format Open
$ListSession[$rows_session['id']] = $rows_session['title'];
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$course_id = $_course['real_id'];
- Exclude checks
Variable "sql_session" is not in valid camel caps format Open
$sql_session = "SELECT id, title FROM $tbl_session ";
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
while ($rows_session = Database::fetch_assoc($query_session)) {
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
$ListSession[$rows_session['id']] = $rows_session['title'];
- Exclude checks
Variable "Code_course" is not in valid camel caps format Open
$_course = api_get_course_info($Code_course);
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip = create_zip();
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
- Exclude checks
Variable "Sessions" is not in valid camel caps format Open
foreach ($Sessions as $IdSession => $value) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = (int) $IdSession;
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
AND docs.session_id = '$session_id'
- Exclude checks
Variable "rows_course_session_file" is not in valid camel caps format Open
while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "ListSession" is not in valid camel caps format Open
$_course['directory']."/".$ListSession[$session_id],
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
$handle = opendir($temp_zip_dir);
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND props.c_id = $course_id";
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
INNER JOIN $tbl_session s
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
$sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "sql_session_doc" is not in valid camel caps format Open
$query_session_doc = Database::query($sql_session_doc);
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$name = rename_zip($FileZip);
- Exclude checks
Variable "Diff" is not in valid camel caps format Open
$Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$course_id = $_course['real_id'];
- Exclude checks
Variable "rows_course_file" is not in valid camel caps format Open
while ($rows_course_file = Database::fetch_assoc($query)) {
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
AND docs.session_id = '$session_id'
- Exclude checks
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_PLATFORM_ADMIN;
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
- Exclude checks
Variable "query_session" is not in valid camel caps format Open
$query_session = Database::query($sql_session);
- Exclude checks
Variable "rows_course_file" is not in valid camel caps format Open
while ($rows_course_file = Database::fetch_assoc($query)) {
- Exclude checks
Variable "rows_course_file" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "IdSession" is not in valid camel caps format Open
$session_id = (int) $IdSession;
- Exclude checks
Variable "sql_session_doc" is not in valid camel caps format Open
$sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "query_session_doc" is not in valid camel caps format Open
while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$_course['directory']."/".$ListSession[$session_id],
- Exclude checks
Missing function doc comment Open
function create_zip()
- Exclude checks
Variable "temp_zip_file" is not in valid camel caps format Open
'TEMP_FILE_ZIP' => $temp_zip_file,
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_TEMP_ARCHIVE'].'/'.$name
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND docs.c_id = $course_id
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$_course['directory'],
- Exclude checks
Variable "tbl_session_course" is not in valid camel caps format Open
FROM $tbl_session_course sc
- Exclude checks
Variable "sys_archive_path" is not in valid camel caps format Open
$temp_zip_dir = $sys_archive_path;
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
mkdir($temp_zip_dir, api_get_permissions_for_new_directories());
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
function rename_zip($FileZip)
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
$sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "session_id" is not in valid camel caps format Open
$session_id = $rows_session['id'];
- Exclude checks
Variable "sql_session_doc" is not in valid camel caps format Open
$query_session_doc = Database::query($sql_session_doc);
- Exclude checks
Variable "list_course" is not in valid camel caps format Open
foreach ($list_course as $_course) {
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = $_course['real_id'];
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder->add(
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$_course['directory']."/".$rows_session['title'],
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
$sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND docs.c_id = $course_id
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND props.c_id = $course_id";
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip = create_zip();
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
if ('/' == $FileZip['PATH']) {
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder->add(
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "query_session_doc" is not in valid camel caps format Open
$query_session_doc = Database::query($sql_session_doc);
- Exclude checks
Variable "query_session_doc" is not in valid camel caps format Open
while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
$_course['directory']."/".$rows_session['title'],
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
unlink("$temp_zip_dir/$file");
- Exclude checks
Missing function doc comment Open
function fullexportspecial()
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND docs.c_id = $course_id
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
$tbl_document = Database::get_course_table(TABLE_DOCUMENT);
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$_course['directory'],
- Exclude checks
Missing function doc comment Open
function form_special_export()
- Exclude checks
Consider putting global function "rename_zip" in a static class Open
function rename_zip($FileZip)
- Exclude checks
Variable "list_course" is not in valid camel caps format Open
if (count($list_course) > 0) {
- Exclude checks
Variable "rows_course_file" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "rows_course_session_file" is not in valid camel caps format Open
while ($rows_course_session_file = Database::fetch_assoc($query_session_doc)) {
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
$sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND docs.c_id = $course_id
- Exclude checks
Consider putting global function "create_zip" in a static class Open
function create_zip()
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
'PATH_TEMP_ARCHIVE' => $temp_zip_dir,
- Exclude checks
Variable "sys_course_path" is not in valid camel caps format Open
'PATH_COURSE' => $sys_course_path,
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
unlink($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name);
- Exclude checks
Variable "tbl_session" is not in valid camel caps format Open
global $tbl_session, $tbl_session_course, $export;
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
$to_group_id = 0;
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder = new PclZip($FileZip['TEMP_FILE_ZIP']);
- Exclude checks
Variable "query_session" is not in valid camel caps format Open
while ($rows_session = Database::fetch_assoc($query_session)) {
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "remove_dir" is not in valid camel caps format Open
'PATH_REMOVE' => $remove_dir,
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$querypath = $FileZip['PATH'];
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
$session_id = $rows_session['id'];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND props.c_id = $course_id ";
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
AND props.c_id = $course_id";
- Exclude checks
Consider putting global function "form_special_export" in a static class Open
function form_special_export()
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
$temp_zip_dir = $sys_archive_path;
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
if (!is_dir($temp_zip_dir)) {
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
$Diff = (time() - filemtime("$temp_zip_dir/$file")) / 60 / 60; //the "age" of the file in hours
- Exclude checks
Variable "temp_zip_file" is not in valid camel caps format Open
$temp_zip_file = $temp_zip_dir."/".md5(time()).".zip"; //create zipfile of given directory
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
- Exclude checks
Consider putting global function "fullexportspecial" in a static class Open
function fullexportspecial()
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
$tbl_document = Database::get_course_table(TABLE_DOCUMENT);
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
$groupCondition = " props.to_group_id = $to_group_id";
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
$sql = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
$sql_session_doc = "SELECT path FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "query_session_doc" is not in valid camel caps format Open
$query_session_doc = Database::query($sql_session_doc);
- Exclude checks
Variable "zip_folder" is not in valid camel caps format Open
$zip_folder->add(
- Exclude checks
Variable "sys_archive_path" is not in valid camel caps format Open
$sys_archive_path = api_get_path(SYS_ARCHIVE_PATH).'special_export/';
- Exclude checks
Variable "temp_zip_dir" is not in valid camel caps format Open
$temp_zip_file = $temp_zip_dir."/".md5(time()).".zip"; //create zipfile of given directory
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['TEMP_FILE_ZIP'],
- Exclude checks
Variable "tbl_session_course" is not in valid camel caps format Open
global $tbl_session, $tbl_session_course, $export;
- Exclude checks
Variable "to_group_id" is not in valid camel caps format Open
if (empty($to_group_id)) {
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$rows_course_file['path'],
- Exclude checks
Variable "rows_session" is not in valid camel caps format Open
while ($rows_session = Database::fetch_assoc($query_session)) {
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory']."/document".$FileZip['PATH_REMOVE']
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Missing function doc comment Open
function rename_zip($FileZip)
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
$tbl_property = Database::get_course_table(TABLE_ITEM_PROPERTY);
- Exclude checks
Variable "query_session" is not in valid camel caps format Open
$query_session = Database::query($sql);
- Exclude checks
Variable "tbl_property" is not in valid camel caps format Open
FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "rows_course_session_file" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
if (file_exists($FileZip['TEMP_FILE_ZIP'])) {
- Exclude checks
Variable "list_course" is not in valid camel caps format Open
$list_course = CourseManager::get_course_list();
- Exclude checks
Variable "_course" is not in valid camel caps format Open
foreach ($list_course as $_course) {
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$_course['directory']."/".$ListSession[$session_id],
- Exclude checks
Variable "sys_course_path" is not in valid camel caps format Open
$sys_course_path = api_get_path(SYS_COURSE_PATH);
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = '$course_id' ";
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$rows_course_session_file['path'],
- Exclude checks
Variable "Diff" is not in valid camel caps format Open
if ($Diff > 4) {
- Exclude checks
Variable "sql_session_doc" is not in valid camel caps format Open
$sql_session_doc = "SELECT path
- Exclude checks
Variable "tbl_document" is not in valid camel caps format Open
FROM $tbl_document AS docs, $tbl_property AS props
- Exclude checks
Variable "_course" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$FileZip['PATH_COURSE'].$_course['directory'].'/document'.$FileZip['PATH_REMOVE']
- Exclude checks
Variable "FileZip" is not in valid camel caps format Open
$name = rename_zip($FileZip);
- Exclude checks
The variable $tbl_document is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sys_course_path is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $remove_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $to_group_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $list_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $Diff is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sys_course_path is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $to_group_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_course_file is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $zip_folder is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $zip_folder is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_course_file is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_session_doc is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_session_doc is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $Diff is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_document is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_file is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_file is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $session_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_property is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_course_session_file is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $to_group_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $list_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sql_session_doc is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $zip_folder is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_session_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $rows_course_session_file is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sys_archive_path is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_document is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_property is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $course_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function rename_zip($FileZip)
{
Event::event_download(('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip (folder)' : basename($FileZip['PATH']).'.zip (folder)');
$name = ('/' == $FileZip['PATH']) ? 'full_export_'.date('Ymd').'.zip' : basename($FileZip['PATH']).'.zip';
if (file_exists($FileZip['PATH_TEMP_ARCHIVE'].'/'.$name)) {
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $list_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_property is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $query_session is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $session_id is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $remove_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sys_archive_path is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $temp_zip_dir is not named in camelCase. Open
function create_zip()
{
$path = '';
if (empty($path)) {
$path = '/';
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $tbl_session_course is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $sql_session_doc is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $FileZip is not named in camelCase. Open
function fullexportspecial()
{
global $tbl_session, $tbl_session_course, $export;
$FileZip = create_zip();
$to_group_id = 0;
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}