Example #1
0
$locations = Location::get_all_location($connection);
for ($i = 0; $i < sizeof($locations); $i++) {
    echo $locations[$i]->get_name();
    echo "<br />";
}
echo "<br />";
$nationalities = Nationality::get_all_nationality($connection);
for ($i = 0; $i < sizeof($nationalities); $i++) {
    echo $nationalities[$i]->get_name();
    echo "<br />";
}
echo "<br />";
//Industry::add_industry("Banking", $connection);
//Industry::update_industry("Banking", "Finance", $connection);
//Industry::delete_industry("Finance", $connection);
$industries = Industry::get_all_industry($connection);
for ($i = 0; $i < sizeof($industries); $i++) {
    echo $industries[$i]->get_name();
    echo "<br />";
}
echo "<br />";
$positions = Position::get_all_position($connection);
for ($i = 0; $i < sizeof($positions); $i++) {
    echo $positions[$i]->get_name();
    echo "<br />";
}
echo "<br />";
$rnd_employer = new Employer();
$rnd_employer->set_email("*****@*****.**");
$rnd_employer->set_password("123456");
$rnd_employer->set_address("nus");
Example #2
0
 public function set_industry($industry_name)
 {
     $industry = new Industry();
     $industry->set_name($industry_name);
     $this->industry = $industry;
 }
Example #3
0
 public function delete()
 {
     $industry = $_GET["industry"];
     Industry::delete_industry($industry, $this->connection);
     header("Location: " . $_SERVER["HTTP_REFERER"]);
 }