install.php 439 B

1234567891011121314
  1. <?php
  2. /* PHP code to install the plugin
  3. * For example:
  4. *
  5. // To query something to the database
  6. $table = Database::get_main_table(TABLE_MAIN_USER); // TABLE_MAIN_USER is a constant check the main/inc/database.constants.inc.php
  7. $sql = "SELECT firstname, lastname FROM $table_users ";
  8. $users = Database::query($sql);
  9. You can also use the Chamilo classes
  10. $users = UserManager::get_user_list();
  11. */