Minor - flint fixes

pull/3354/head
Julio Montoya 5 years ago
parent a098c38dd9
commit a26779daf5
  1. 2
      main/admin/configure_homepage.php
  2. 38
      main/inc/lib/database.lib.php
  3. 4
      main/inc/lib/userportal.lib.php

@ -1250,7 +1250,7 @@ switch ($action) {
$tab_string = str_replace(
['href="'.api_get_path(WEB_PATH).'index.php?include=', '</li>'],
['href="'.api_get_path(WEB_CODE_PATH).'admin/'.basename($selfUrl).'?action=open_link&link=',
$edit_link.$delete_link.$delete_all.'</li>'],
$edit_link.$delete_link.$delete_all.'</li>', ],
$enreg
);
$tab_string = str_replace([' class="hide_menu"', ' class="show_menu"'], '', $tab_string);

@ -21,7 +21,8 @@ class Database
private static $connection;
/**
* Set the DB manager instance
* Set the DB manager instance.
*
* @param EntityManager $em
*/
public function setManager($em)
@ -30,8 +31,7 @@ class Database
}
/**
* Set the DB connection instance
* @param Connection $connection
* Set the DB connection instance.
*/
public function setConnection(Connection $connection)
{
@ -39,7 +39,8 @@ class Database
}
/**
* Get the DB connection instance
* Get the DB connection instance.
*
* @return Connection
*/
public function getConnection()
@ -48,7 +49,8 @@ class Database
}
/**
* Get the DB manager instance
* Get the DB manager instance.
*
* @return EntityManager
*/
public static function getManager()
@ -339,7 +341,8 @@ class Database
}
/**
* Wrapper for rowCount()
* Wrapper for rowCount().
*
* @return int
*/
public static function num_rows(Statement $result)
@ -372,7 +375,8 @@ class Database
}
/**
* Wrapper for executeQuery()
* Wrapper for executeQuery().
*
* @param string $query
*
* @return Statement
@ -391,7 +395,8 @@ class Database
}
/**
* Deal with exceptions from the database extension
* Deal with exceptions from the database extension.
*
* @param Exception $e
*/
public static function handleError($e)
@ -416,7 +421,8 @@ class Database
}
/**
* Transform an SQL option from Chamilo to PDO syntax
* Transform an SQL option from Chamilo to PDO syntax.
*
* @param string $option
*
* @return int
@ -453,7 +459,7 @@ class Database
}
/**
* Build an insert query
* Build an insert query.
*
* @param string $table_name
* @param array $attributes
@ -490,7 +496,8 @@ class Database
}
/**
* Build an update query
* Build an update query.
*
* @param string $tableName use Database::get_main_table
* @param array $attributes Values to updates
* Example: $params['name'] = 'Julio'; $params['lastname'] = 'Montoya';
@ -738,7 +745,8 @@ class Database
}
/**
* Build a delete query
* Build a delete query.
*
* @param string $table_name
* @param array $where_conditions
* @param bool $show_query
@ -802,7 +810,8 @@ class Database
}
/**
* Check if a given table exists
* Check if a given table exists.
*
* @param string $table
*
* @return bool
@ -813,7 +822,8 @@ class Database
}
/**
* List the columns of a given table
* List the columns of a given table.
*
* @param string $table
*
* @return \Doctrine\DBAL\Schema\Column[]

@ -2287,13 +2287,15 @@ class IndexManager
}
/**
* Wrapper to CourseManager::returnPopularCoursesHandPicked()
* Wrapper to CourseManager::returnPopularCoursesHandPicked().
*
* @return array
*/
public function returnPopularCoursesHandPicked()
{
return CourseManager::returnPopularCoursesHandPicked();
}
/**
* @param $listA
* @param $listB

Loading…
Cancel
Save