public function info($param) { $cBom = new CompaniesBom(); $jBom = new JobsBom(); $company = $cBom->getCompanyByCompanyName($param); $template = new Core_Template("default", "companies", "info"); $template->setAttribute("company", $company); $template->setAttribute("latest_jobs", $jBom->getJobsByCompanyName($company->name)); }
public function view($job_id) { $jBom = new JobsBom(); $apis = new APISources(); $template = new Core_Template("default", "jobs", "view"); $job = $jBom->getJobByJobId($job_id); $template->setAttribute("job", $job); $template->setAttribute("other_jobs", $jBom->getJobsByCompanyName($job->company)); $template->setAttribute("api", $apis->retrieveObjectById($job->api_source_id)); }