19 lines
705 B
PHP
19 lines
705 B
PHP
<?php
|
|
require_once __DIR__ . '/cls/class.pef.php';
|
|
|
|
$pef = new Pef();
|
|
|
|
// Check if we already have projects
|
|
if (count($pef->getProjects()) === 0) {
|
|
$p1 = $pef->createProject('Bridge Construction A1', 'Main bridge construction for the highway project.', 'Construction', '1.0.0');
|
|
$pef->addLog($p1, '1.0.0', 'Project initiated.', 'Admin');
|
|
$pef->addLog($p1, '1.1.0', 'Foundation completed.', 'Site Manager');
|
|
|
|
$p2 = $pef->createProject('Online Learning Platform', 'LMS for local schools.', 'Education', '0.9.0');
|
|
$pef->addLog($p2, '0.9.0', 'Beta version launched for testing.', 'Dev Team');
|
|
|
|
echo "Sample data seeded.\n";
|
|
} else {
|
|
echo "Database already contains data.\n";
|
|
}
|