Muhammaddiyor
Muhammaddiyor
1. Kirish
Foydalanuvchilar ma'lumotlari
Kurslar ma'lumotlari
Baholash tizimi
Plugins ma'lumotlari
Tizim sozlamalari
Asosiy funksionallik
Xavfsizlik tizimi
Foydalanuvchilarni boshqarish
Kurslarni boshqarish
Baholash tizimi
Plugin turlari:
Activities (faoliyatlar)
Blocks (bloklar)
Course formats (kurs formatlari)
Authentication (autentifikatsiya)
Enrollment (ro'yxatdan o'tish)
Repository (fayl ombori)
Core integration
Database tables
API endpoints
User interface
Students
Groups
Grades
Reports
Settings
apache
Copy
<VirtualHost *:80> ServerName moodle.local DocumentRoot
"C:/xampp/htdocs/moodle" <Directory "C:/xampp/htdocs/moodle">
Options Indexes FollowSymLinks AllowOverride All Require
all granted </Directory></VirtualHost>
ini
Copy
max_execution_time = 300memory_limit = 256Mpost_max_size =
50Mupload_max_filesize = 50Mmax_input_vars = 5000
6.3 Konfiguratsiya
php
Copy
<?phpunset($CFG);global $CFG;$CFG = new stdClass();$CFG->dbtype
= 'mysqli';$CFG->dblibrary = 'native';$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';$CFG->dbuser = 'moodleuser';$CFG-
>dbpass = 'password';$CFG->prefix = 'mdl_';$CFG->wwwroot =
'http://moodle.local';$CFG->dataroot = 'C:/xamppdata/moodledata';
$CFG->admin = 'admin';$CFG->directorypermissions =
0777;require_once(__DIR__ . '/lib/setup.php');
sql
Copy
CREATE TABLE mdl_block_deansoffice_students ( id BIGINT(10)
NOT NULL AUTO_INCREMENT, userid BIGINT(10) NOT NULL,
groupid BIGINT(10) NOT NULL, status TINYINT(2) NOT NULL
DEFAULT 1, timecreated BIGINT(10) NOT NULL, timemodified
BIGINT(10) NOT NULL, PRIMARY KEY (id)) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
php
Copy
class block_deansoffice extends block_base { public function init() {
$this->title = get_string('pluginname', 'block_deansoffice'); } public
function get_content() { if ($this->content !== null) { return
$this->content; } $this->content = new stdClass; $this-
>content->text = $this->get_main_content(); $this->content->footer
= ''; return $this->content; }}
8. Xavfsizlik sozlamalari
9. Testing va debugging
php
Copy
class block_deansoffice_test extends advanced_testcase { public
function test_block_creation() { $this->resetAfterTest(); $block
= new block_deansoffice(); $this-
>assertInstanceOf('block_deansoffice', $block); }}
API testlari
Database testlari
Performance testlari
Memcached/Redis integration
Page caching
Session handling
Index optimization
Query optimization
Table optimization
Javascript bundling
CSS minification
Image optimization
Xulosa
Foydalanilgan adabiyotlar
Glossariy
MVC - Model-View-Controller
API - Application Programming Interface
RBAC - Role-Based Access Control
SSL - Secure Sockets Layer
XAMPP - Cross-Platform, Apache, MySQL, PHP, Perl