1 2 3 4 5 6 7 8 9 10 11 12 13
<?php class module { public $id, $name, $numsteps, $steps, $dir; function __construct($id) { $this->id=$id; require(FRONTEND."/modules/$id.info"); $this->name=$name; $this->steps=$steps; $this->numsteps=count($steps); $this->dir=FRONTEND.'/modules/'.$dir; } } ?>