PHP Developer / Moodle Developer

PHP Moodle Developer
About me I'm PHP developer with 13 years of experience. I've prepared Moodle/Totara custom development for last 5 years. I built my first software when I was 9 years old. Welcome to my site!

Częstochowa, Poland
+48 668 690 844

Create or update Totara

Back to Moodle code tips

# moodle# totara 9# job assignment

How to create or update job assignments on Totara

$idnumber = 1; // unique for a user
$newjobdata['fullname'] = 'Moodle developer';
$newjobdata['startdate'] = '2013-10-20';
$newjobdata['enddate'] = '2017-12-30';
$newjobdata['description'] = 'Description';

$jobassignment = \totara_job\job_assignment::get_with_idnumber($USER->id, $idnumber, false);

if (empty($jobassignment)) {
// Create.
$newjobdata['userid'] = $USER->id;
$newjobdata['idnumber'] = $idnumber;

} else {
// Update.

Back to Moodle code tips
PHP Moodle Developer
I'm offering wide range of development for your Moodle / Totara LMS system. As a Moodle developer I can prepare for you fency dashboards, new blocks, new local plugins, report builder custom sources and other types of plugins. I can extend default Moodle / Totara functionality according to your ideas and needs. Because I have strong experience in general PHP field I can implement an application from scratch using any modern framework like Laravel or Phalcon -- Bartosz Hornik, PHP Moodle developer.