PHP code example of hauerheinrich / hh-simple-job-posts
1. Go to this page and download the library: Download hauerheinrich/hh-simple-job-posts library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hauerheinrich / hh-simple-job-posts example snippets
declare(strict_types=1);
namespace Vendor\Extension\EventListener;
use HauerHeinrich\HhSimpleJobPosts\Event\JobpostsListEvent;
/**
* Use JobpostsListEvent from ext:hh_simple_job_posts
*/
class YourListener {
/**
* Do what you want...
*/
public function yourMethodToConnectToEvent(JobpostsListEvent $event): void {
$values = $event->getAssignedValues();
// Do some stuff
$event->setAssignedValues($values);
}
}